Class: Shipit::RollbackCommands

Inherits:
DeployCommands show all
Defined in:
lib/shipit/rollback_commands.rb

Instance Method Summary collapse

Methods inherited from TaskCommands

#checkout, #clear_working_directory, #clone, #deploy_spec, #initialize, #install_dependencies, #perform, #stack_commands

Methods inherited from Commands

for, #git, git_version, parse_git_version

Constructor Details

This class inherits a constructor from Shipit::TaskCommands

Instance Method Details

#envObject



9
10
11
12
13
# File 'lib/shipit/rollback_commands.rb', line 9

def env
  super.merge(
    'ROLLBACK' => '1'
  )
end

#stepsObject



5
6
7
# File 'lib/shipit/rollback_commands.rb', line 5

def steps
  deploy_spec.rollback_steps!
end