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.
11 12 13 |
# File 'lib/vSphere/action/destroy.rb', line 11 def initialize(app, _env) @app = app end |
Instance Method Details
#call(env) ⇒ Object
15 16 17 18 19 20 |
# File 'lib/vSphere/action/destroy.rb', line 15 def call(env) destroy_vm env env[:machine].id = nil @app.call env end |