Sha256: 55caf2ce46003fed06734fdc7a74c2a7e632b1b180af8d1bb54171dc1c554da0

Contents?: true

Size: 376 Bytes

Versions: 1

Compression:

Stored size: 376 Bytes

Contents

module Shifter
  class CLI < Thor
    module Promote

      desc 'promote <env>', 'promotes commit to <env>'

      long_desc <<-DESC

      DESC

      option :interactive, type: :boolean, aliases: :i

      def promote(env)
        if options[:interactive]
          last_tag = Git.last_tag(env)

        else
          Git.tag! env
        end
      end

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
shifter-0.0.1 lib/shifter/cli/promote.rb