Class: VagrantBootstrap::Action::Destroy

Inherits:
Object
  • Object
show all
Defined in:
lib/vagrant_bootstrap/action/destroy.rb

Instance Method Summary collapse

Constructor Details

#initialize(app, env) ⇒ Destroy

Returns a new instance of Destroy.



10
11
12
# File 'lib/vagrant_bootstrap/action/destroy.rb', line 10

def initialize(app, env)
  @app = app
end

Instance Method Details

#call(env) ⇒ Object



14
15
16
17
# File 'lib/vagrant_bootstrap/action/destroy.rb', line 14

def call(env)
  @client_name = env[:vm].config.keys[:vm].host_name
  remove_chef_client_and_node!
end