Class: RubyDeployer::Unprovisioner

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby_deployer/unprovisioner.rb

Instance Method Summary collapse

Constructor Details

#initialize(deploy_file, environment) ⇒ Unprovisioner

Returns a new instance of Unprovisioner.



3
4
5
6
# File 'lib/ruby_deployer/unprovisioner.rb', line 3

def initialize deploy_file, environment
  @deploy_file = deploy_file
  @environment = environment
end

Instance Method Details

#startObject



8
9
10
11
# File 'lib/ruby_deployer/unprovisioner.rb', line 8

def start
  puts 'Unprovisioning...'
  servers.each { |server| server.destroy }
end