Class: RubyDeployer::Unprovisioner
- Inherits:
-
Object
- Object
- RubyDeployer::Unprovisioner
- Defined in:
- lib/ruby_deployer/unprovisioner.rb
Instance Method Summary collapse
-
#initialize(deploy_file, environment) ⇒ Unprovisioner
constructor
A new instance of Unprovisioner.
- #start ⇒ Object
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
#start ⇒ Object
8 9 10 11 |
# File 'lib/ruby_deployer/unprovisioner.rb', line 8 def start puts 'Unprovisioning...' servers.each { |server| server.destroy } end |