Sha256: 57422c6dad5b91ecaeee4abff1d44aa8cacc8d249544629f5216be3a03d6dde8

Contents?: true

Size: 356 Bytes

Versions: 1

Compression:

Stored size: 356 Bytes

Contents

module VagrantPlugins
  module GuestOpenBSD
    module Cap
      class Halt
        def self.halt(machine)
          begin
            machine.communicate.sudo("shutdown -hp now")
          rescue IOError
            # ignore IOError while shutting down
            # See FreeBSD's halt implementation
          end
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
vagrant-guests-openbsd-0.0.3 lib/vagrant-guests-openbsd/cap/halt.rb