Class: Rubysmith::CLI::Actions::Publish

Inherits:
Sod::Action
  • Object
show all
Defined in:
lib/rubysmith/cli/actions/publish.rb

Overview

Publishes project.

Instance Method Summary collapse

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)