Class: VagrantPlugins::ProviderVeertu::Action::Boot
- Inherits:
-
Object
- Object
- VagrantPlugins::ProviderVeertu::Action::Boot
- Defined in:
- lib/vagrant-veertu/action/boot.rb
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app, env) ⇒ Boot
constructor
A new instance of Boot.
Constructor Details
#initialize(app, env) ⇒ Boot
Returns a new instance of Boot.
5 6 7 |
# File 'lib/vagrant-veertu/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-veertu/action/boot.rb', line 9 def call(env) @env = env boot_mode = @env[:machine].provider_config.gui ? "gui" : "headless" # Start up the VM and wait for it to boot. env[:ui].info I18n.t("vagrant.actions.vm.boot.booting") env[:machine].provider.driver.start(boot_mode) @app.call(env) end |