Class: VagrantPlugins::GuestOpenWrt::Cap::Halt
- Inherits:
-
Object
- Object
- VagrantPlugins::GuestOpenWrt::Cap::Halt
- Defined in:
- lib/vagrant/plugins/guests/openwrt/cap/halt.rb
Class Method Summary collapse
Class Method Details
.halt(machine) ⇒ Object
5 6 7 8 9 10 |
# File 'lib/vagrant/plugins/guests/openwrt/cap/halt.rb', line 5 def self.halt(machine) machine.communicate.execute("poweroff") rescue IOError # Do nothing, because it probably means the machine shut down # and SSH connection was lost. end |