Class: Rubysmith::CLI::Actions::Publish
- Inherits:
-
Sod::Action
- Object
- Sod::Action
- Rubysmith::CLI::Actions::Publish
- Defined in:
- lib/rubysmith/cli/actions/publish.rb
Overview
Publishes project.
Instance Method Summary collapse
- #call(version) ⇒ Object
-
#initialize(extension: Extensions::Milestoner) ⇒ Publish
constructor
A new instance of Publish.
Constructor Details
#initialize(extension: Extensions::Milestoner) ⇒ Publish
Returns a new instance of Publish.
19 20 21 22 |
# File 'lib/rubysmith/cli/actions/publish.rb', line 19 def initialize(extension: Extensions::Milestoner, **) super(**) @extension = extension end |
Instance Method Details
#call(version) ⇒ Object
24 |
# File 'lib/rubysmith/cli/actions/publish.rb', line 24 def call(version) = extension.call configuration.merge(project_version: version) |