Sha256: 44dcfe2abcb134f46a0e82f261fe74551156590c6bf552e50ddb204f9398ca3f

Contents?: true

Size: 420 Bytes

Versions: 1

Compression:

Stored size: 420 Bytes

Contents

module VagrantPlugins
  module GuestSUSE
    module Cap
      class Halt
        def self.halt(machine)
          begin
            machine.communicate.sudo("/usr/bin/systemctl poweroff &")
          rescue IOError, Vagrant::Errors::SSHDisconnected
            # Do nothing, because it probably means the machine shut down
            # and SSH connection was lost.
          end
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
vagrant-unbundled-2.2.18.0 plugins/guests/suse/cap/halt.rb