class Employ::CLI
Public Instance Methods
promote(env)
click to toggle source
# File lib/employ/cli.rb, line 11 def promote(env) unless options['assume-yes'] || yes?('Are you sure?') puts 'Nothing done. Bye!' exit 1 end if options[:interactive] last_tag = Git.last_tag(env) puts "last tag: #{last_tag}" if options[:verbose] # TODO else name = Git.tag!(env) puts "New tag promoted: #{name}" if options[:verbose] end end
rollback(env)
click to toggle source
# File lib/employ/cli.rb, line 29 def rollback(env) penultimate_tag = Git.penultimate_tag(env) Git.retag! env, penultimate_tag end