class HashiCorp::VagrantVMwareDesktop::Action::Boot

This class boots the actual VMware VM. It also waits for it to complete booting.

Public Class Methods

new(app, env) click to toggle source
# File lib/vagrant-vmware-desktop/action/boot.rb, line 11
def initialize(app, env)
  @app = app
  @logger = Log4r::Logger.new("hashicorp::provider::vmware::boot")
end

Public Instance Methods

call(env) click to toggle source
# File lib/vagrant-vmware-desktop/action/boot.rb, line 16
def call(env)
  env[:ui].info(I18n.t("hashicorp.vagrant_vmware_desktop.booting"))
  env[:machine].provider.driver.start(
    env[:machine].provider_config.gui)

  @app.call(env)
end