Class: VagrantVbguest::Command

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

Class Method Summary collapse

Instance Method Summary collapse

Methods included from CommandCommons

#execute, included

Methods included from Helpers::Rebootable

included, #reboot, #reboot!, #reboot?, #rebooted?

Methods included from Helpers::VmCompatible

#communicate, #driver, included

Class Method Details

.synopsisObject

Show description when ‘vagrant list-commands` is triggered



11
12
13
# File 'lib/vagrant-vbguest/vagrant_compat/vagrant_1_1/command.rb', line 11

def self.synopsis
  "plugin: vagrant-vbguest: install VirtualBox Guest Additions to the machine"
end

Instance Method Details

#check_runable_on(vm) ⇒ Object

Raises:

  • (Vagrant::Errors::VMNotCreatedError)


10
11
12
13
14
# File 'lib/vagrant-vbguest/vagrant_compat/vagrant_1_0/command.rb', line 10

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