Class: VagrantVbguest::Command

Inherits:
Vagrant::Command::Base
  • Object
show all
Includes:
Vagrant::Command::StartMixins, VagrantPlugins::CommandUp::StartMixins, CommandCommons
Defined in:
lib/vagrant-vbguest/command.rb,
lib/vagrant-vbguest/command.rb

Instance Method Summary collapse

Methods included from CommandCommons

#execute

Methods included from Helpers::Rebootable

#reboot, #rebooted?

Instance Method Details

#check_runable_on(vm) ⇒ Object

Raises:

  • (Vagrant::Errors::VMNotCreatedError)


96
97
98
99
100
# File 'lib/vagrant-vbguest/command.rb', line 96

def check_runable_on(vm)
  raise Vagrant::Errors::VMNotCreatedError if !vm.created?
  raise Vagrant::Errors::VMInaccessible if !vm.state == :inaccessible
  raise Vagrant::Errors::VMNotRunningError if vm.state != :running
end