Sha256: 31b28b0b78e4b97e44858f460ca03046f1ab8b53db39c80fcf129ff520dc0a33
Contents?: true
Size: 555 Bytes
Versions: 48
Compression:
Stored size: 555 Bytes
Contents
module VagrantPlugins module GuestDarwin module Cap class Halt def self.halt(machine) begin # Darwin does not support the `-p` option like the rest of the # BSD-based guests, so it needs its own cap. machine.communicate.sudo("/sbin/shutdown -h now") rescue IOError, Vagrant::Errors::SSHDisconnected # Do nothing because SSH connection closed and it probably # means the VM just shut down really fast. end end end end end end
Version data entries
48 entries across 44 versions & 5 rubygems