Class: Wocker::Cli::KeyboardCommand::WriteCommand

Inherits:
Clamp::Command
  • Object
show all
Defined in:
lib/wocker/cli/keyboard/write_command.rb

Instance Method Summary collapse

Instance Method Details

#executeObject



9
10
11
12
13
# File 'lib/wocker/cli/keyboard/write_command.rb', line 9

def execute
  first_vm_name = Wocker::Virtualbox.first_running_vm_name

  `VBoxManage controlvm #{first_vm_name} keyboardputstring #{string}`
end