Class: VagrantPlugins::PackageVMware::Action::HaltMachine
- Inherits:
-
Object
- Object
- VagrantPlugins::PackageVMware::Action::HaltMachine
- Defined in:
- lib/vagrant-package-vmware/action/halt_machine.rb
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app, env) ⇒ HaltMachine
constructor
A new instance of HaltMachine.
Constructor Details
#initialize(app, env) ⇒ HaltMachine
Returns a new instance of HaltMachine.
6 7 8 |
# File 'lib/vagrant-package-vmware/action/halt_machine.rb', line 6 def initialize(app, env) @app = app end |
Instance Method Details
#call(env) ⇒ Object
10 11 12 13 |
# File 'lib/vagrant-package-vmware/action/halt_machine.rb', line 10 def call(env) env[:machine].action(:halt) @app.call(env) end |