Class: VirtualBox::GuestControl::Command

Inherits:
Clamp::Command
  • Object
show all
Defined in:
lib/virtualbox/guest_control/command.rb

Instance Method Summary collapse

Instance Method Details

#machineObject



10
11
12
13
14
15
16
17
18
# File 'lib/virtualbox/guest_control/command.rb', line 10

def machine
  VirtualBox::GuestControl::Machine.find_by_name(name).tap do |machine|
    raise "No such machine #{name}" unless machine.present?
    machine.username = username
    machine.password = password
    machine.vbox_manage = vboxmanage unless vboxmanage.nil?
    machine.default_timeout = timeout unless vboxmanage.nil?
  end
end