Sha256: 0d0d2c0ad373a916067eae5a0631c86f69e4f7ec46d584a3ebd44849e0b018a7
Contents?: true
Size: 639 Bytes
Versions: 46
Compression:
Stored size: 639 Bytes
Contents
module VagrantPlugins module GuestSmartos module Cap class Halt def self.halt(machine) # There should be an exception raised if the line # # vagrant::::profiles=Primary Administrator # # does not exist in /etc/user_attr. TODO begin machine.communicate.execute( "#{machine.config.smartos.suexec_cmd} /usr/sbin/poweroff") rescue IOError, Vagrant::Errors::SSHDisconnected # Ignore, this probably means connection closed because it # shut down. end end end end end end
Version data entries
46 entries across 42 versions & 5 rubygems