Class: VagrantPlugins::ProviderZone::Command::RestartGuest
- Inherits:
-
Object
- Object
- VagrantPlugins::ProviderZone::Command::RestartGuest
- Defined in:
- lib/vagrant-zones/command/restart_guest.rb
Overview
This is used to restart the guest from inside the guest
Instance Method Summary collapse
Instance Method Details
#execute ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/vagrant-zones/command/restart_guest.rb', line 8 def execute opts = OptionParser.new do |o| o. = 'Usage: vagrant zone control restart [options]' end argv = (opts) return unless argv unless argv.empty? @env.ui.info(opts.help) return end ## Wait for VM up with_target_vms(argv, provider: :zone) do |machine| machine.action('restart') end end |