Class: VirtualBox::GuestControl::Command
- Inherits:
-
Clamp::Command
- Object
- Clamp::Command
- VirtualBox::GuestControl::Command
- Defined in:
- lib/virtualbox/guest_control/command.rb
Instance Method Summary collapse
Instance Method Details
#machine ⇒ Object
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 |