Class: VagrantPlugins::PackageVMware::Action::HaltMachine

Inherits:
Object
  • Object
show all
Defined in:
lib/vagrant-package-vmware/action/halt_machine.rb

Instance Method Summary collapse

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