Class: VagrantPlugins::VagrantHyperV::Guest::Cap::Halt
- Inherits:
-
Object
- Object
- VagrantPlugins::VagrantHyperV::Guest::Cap::Halt
- Defined in:
- lib/vagrant-windows-hyperv/guest/cap/halt.rb
Class Method Summary collapse
Class Method Details
.halt(machine) ⇒ Object
11 12 13 14 |
# File 'lib/vagrant-windows-hyperv/guest/cap/halt.rb', line 11 def self.halt(machine) machine.provider.driver.run_remote_ps("shutdown -a") machine.provider.driver.run_remote_ps("shutdown /s /t 1") end |