Class: VagrantPlugins::VSphere::Action::Destroy
- Inherits:
-
Object
- Object
- VagrantPlugins::VSphere::Action::Destroy
- Includes:
- Util::VimHelpers
- Defined in:
- lib/vSphere/action/destroy.rb
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app, _env) ⇒ Destroy
constructor
A new instance of Destroy.
Methods included from Util::VimHelpers
#find_clustercompute_or_compute_resource, #get_compute_resource, #get_customization_spec_info_by_name, #get_datacenter, #get_datastore, #get_network_by_name, #get_resource_pool, #get_vm_by_uuid
Constructor Details
#initialize(app, _env) ⇒ Destroy
Returns a new instance of Destroy.
13 14 15 |
# File 'lib/vSphere/action/destroy.rb', line 13 def initialize(app, _env) @app = app end |
Instance Method Details
#call(env) ⇒ Object
17 18 19 20 21 22 |
# File 'lib/vSphere/action/destroy.rb', line 17 def call(env) destroy_vm env env[:machine].id = nil @app.call env end |