Class: VagrantPlugins::ProviderZone::Action::Halt

Inherits:
Object
  • Object
show all
Defined in:
lib/vagrant-zone/action/halt.rb

Instance Method Summary collapse

Constructor Details

#initialize(app, env) ⇒ Halt

Returns a new instance of Halt.



7
8
9
10
# File 'lib/vagrant-zone/action/halt.rb', line 7

def initialize(app, env)
	@logger = Log4r::Logger.new("vagrant_zone::action::import")
	@app = app
end

Instance Method Details

#call(env) ⇒ Object



12
13
14
15
16
17
18
# File 'lib/vagrant-zone/action/halt.rb', line 12

def call(env)
	@machine = env[:machine]
	@driver  = @machine.provider.driver

	@driver.halt(@machine, env[:ui])
	@app.call(env)
end