Sha256: ee91cc51b7b24794c691b30c839302857cffa60b3385feea20a6c6b2507ea9d6

Contents?: true

Size: 632 Bytes

Versions: 9

Compression:

Stored size: 632 Bytes

Contents

# frozen_string_literal: true

require "refinements/structs"
require "sod"

module Rubysmith
  module CLI
    module Actions
      # Publishes project.
      class Publish < Sod::Action
        include Import[:input]

        using ::Refinements::Structs

        description "Publish project."

        on %w[-p --publish], argument: "VERSION"

        def initialize(extension: Extensions::Milestoner, **)
          super(**)
          @extension = extension
        end

        def call(version) = extension.call input.merge(project_version: version)

        private

        attr_reader :extension
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
rubysmith-5.9.0 lib/rubysmith/cli/actions/publish.rb
rubysmith-5.8.1 lib/rubysmith/cli/actions/publish.rb
rubysmith-5.8.0 lib/rubysmith/cli/actions/publish.rb
rubysmith-5.7.0 lib/rubysmith/cli/actions/publish.rb
rubysmith-5.6.0 lib/rubysmith/cli/actions/publish.rb
rubysmith-5.5.0 lib/rubysmith/cli/actions/publish.rb
rubysmith-5.4.0 lib/rubysmith/cli/actions/publish.rb
rubysmith-5.3.0 lib/rubysmith/cli/actions/publish.rb
rubysmith-5.2.0 lib/rubysmith/cli/actions/publish.rb