Class: Milestoner::CLI::Actions::Publish
- Inherits:
-
Sod::Action
- Object
- Sod::Action
- Milestoner::CLI::Actions::Publish
- Defined in:
- lib/milestoner/cli/actions/publish.rb
Overview
Handles tag creation and pushing of tag to local repository.
Instance Method Summary collapse
- #call(version = default) ⇒ Object
-
#initialize(publisher: Tags::Publisher.new) ⇒ Publish
constructor
A new instance of Publish.
Constructor Details
Instance Method Details
#call(version = default) ⇒ Object
30 31 32 33 34 35 36 37 38 39 40 |
# 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() then log_error else log_error "Publish failed, unable to parse result." end rescue Versionaire::Error => error log_error error. end |