Class: Wocker::Cli::RestartCommand
- Inherits:
-
Clamp::Command
- Object
- Clamp::Command
- Wocker::Cli::RestartCommand
- Defined in:
- lib/wocker/cli/restart_command.rb
Instance Method Summary collapse
Instance Method Details
#execute ⇒ Object
6 7 8 9 10 11 12 13 14 15 |
# File 'lib/wocker/cli/restart_command.rb', line 6 def execute Wocker::Vagrant.run "reload" puts "sending control+alt+del" `wocker keyboard key control alt del` sleep 1 puts "writing vagrant" `wocker keyboard write vagrant` puts "pressing enter" `wocker keyboard key enter` end |