Sha256: fd651ec2d87e703d30e477f4a6f8db1c238c137ddf3c6ed9edca7a4b3a523704
Contents?: true
Size: 648 Bytes
Versions: 2
Compression:
Stored size: 648 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[:configuration] 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 configuration.merge(project_version: version) private attr_reader :extension end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rubysmith-5.1.0 | lib/rubysmith/cli/actions/publish.rb |
rubysmith-5.0.1 | lib/rubysmith/cli/actions/publish.rb |