Sha256: 82bd9c93bfddf2f673272b63a9914adf69a221ff3daf0fe5803ca207ac628af7
Contents?: true
Size: 390 Bytes
Versions: 2
Compression:
Stored size: 390 Bytes
Contents
module VagrantPlugins module GuestBSD module Cap class Halt def self.halt(machine) begin machine.communicate.sudo("/sbin/shutdown -p now", shell: "sh") rescue IOError # Do nothing, because it probably means the machine shut down # and SSH connection was lost. end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
vagrant-unbundled-1.8.5.2 | plugins/guests/bsd/cap/halt.rb |
vagrant-unbundled-1.8.5.1 | plugins/guests/bsd/cap/halt.rb |