Sha256: 81fd663ba99874e17f713fbf85ea8fde3cd58d0bbfafcc419b8ed74bf8ffe282

Contents?: true

Size: 375 Bytes

Versions: 1

Compression:

Stored size: 375 Bytes

Contents

module Employ
  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
employ-0.0.1 lib/employ/cli/promote.rb