Class: VagrantPlugins::ProviderBhyve::Action::Boot

Inherits:
Object
  • Object
show all
Defined in:
lib/vagrant-bhyve/action/boot.rb

Instance Method Summary collapse

Constructor Details

#initialize(app, env) ⇒ Boot

Returns a new instance of Boot.



8
9
10
11
# File 'lib/vagrant-bhyve/action/boot.rb', line 8

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

Instance Method Details

#call(env) ⇒ Object



13
14
15
16
17
18
19
20
21
# File 'lib/vagrant-bhyve/action/boot.rb', line 13

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

         env[:ui].detail I18n.t('vagrant_bhyve.action.vm.boot.booting')
  @driver.boot(@machine, env[:ui])

  @app.call(env)
end