class Milestoner::CLI::Actions::Publish
Handles tag creation and pushing of tag to local repository.
Attributes
Public Class Methods
Source
# File lib/milestoner/cli/actions/publish.rb, line 25 def initialize(publisher: Tags::Publisher.new, **) super(**) @publisher = publisher end
Calls superclass method
Public Instance Methods
Source
# File lib/milestoner/cli/actions/publish.rb, line 30 def call version = default settings.build_max = 1 case publisher.call Version(version) in Success(version) then version in Failure(message) then log_error message else log_error "Publish failed, unable to parse result." end rescue Versionaire::Error => error log_error error.message end
Private Instance Methods
Source
# File lib/milestoner/cli/actions/publish.rb, line 46 def log_error message logger.error { message } message end