Class: VagrantPlugins::ProviderKvm::Action::Boot

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

Instance Method Summary collapse

Constructor Details

#initialize(app, env) ⇒ Boot

Returns a new instance of Boot.



5
6
7
# File 'lib/vagrant-kvm/action/boot.rb', line 5

def initialize(app, env)
  @app = app
end

Instance Method Details

#call(env) ⇒ Object



9
10
11
12
13
14
15
16
17
# File 'lib/vagrant-kvm/action/boot.rb', line 9

def call(env)
  @env = env

  # Start up the VM
  env[:ui].info I18n.t("vagrant.actions.vm.boot.booting")
  env[:machine].provider.driver.start

  @app.call(env)
end