Sha256: 26be7e04d170faf201d8aec4ceeaee9506e047c34708bee4daaba78d1335382d

Contents?: true

Size: 401 Bytes

Versions: 6

Compression:

Stored size: 401 Bytes

Contents

module VagrantPlugins
  module GuestFreeBSD
    module Cap
      class Halt
        def self.halt(machine)
          begin
            machine.communicate.sudo("shutdown -p now", { shell: "sh" })
          rescue IOError
            # 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

6 entries across 6 versions & 2 rubygems

Version Path
vagrant-compose-yaml-0.1.3 vendor/bundle/ruby/2.2.0/bundler/gems/vagrant-dbb756c7b6da/plugins/guests/freebsd/cap/halt.rb
vagrant-compose-yaml-0.1.2 vendor/bundle/ruby/2.2.0/bundler/gems/vagrant-dbb756c7b6da/plugins/guests/freebsd/cap/halt.rb
vagrant-compose-yaml-0.1.1 vendor/bundle/ruby/2.2.0/bundler/gems/vagrant-dbb756c7b6da/plugins/guests/freebsd/cap/halt.rb
vagrant-compose-yaml-0.1.0 vendor/bundle/ruby/2.2.0/bundler/gems/vagrant-dbb756c7b6da/plugins/guests/freebsd/cap/halt.rb
vagrant-unbundled-1.8.4.2 plugins/guests/freebsd/cap/halt.rb
vagrant-unbundled-1.8.4.1 plugins/guests/freebsd/cap/halt.rb