Sha256: fcb896f49ddf1a907c791a5356c004582de0e24d4e7a917ce522aabdeb37ac72

Contents?: true

Size: 407 Bytes

Versions: 36

Compression:

Stored size: 407 Bytes

Contents

module VagrantPlugins
  module GuestLinux
    module Cap
      class Halt
        def self.halt(machine)
          begin
            machine.communicate.sudo("shutdown -h now")
          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

36 entries across 32 versions & 4 rubygems

Version Path
vagrant-unbundled-2.2.7.0 plugins/guests/linux/cap/halt.rb
vagrant-unbundled-2.2.6.2 plugins/guests/linux/cap/halt.rb
vagrant-unbundled-2.2.6.1 plugins/guests/linux/cap/halt.rb
vagrant-unbundled-2.2.6.0 plugins/guests/linux/cap/halt.rb
vagrant-unbundled-2.2.5.0 plugins/guests/linux/cap/halt.rb
vagrant-unbundled-2.2.4.0 plugins/guests/linux/cap/halt.rb
vagrant-unbundled-2.2.3.0 plugins/guests/linux/cap/halt.rb
vagrant-unbundled-2.2.2.0 plugins/guests/linux/cap/halt.rb
vagrant-unbundled-2.2.0.0 plugins/guests/linux/cap/halt.rb
vagrant-unbundled-2.1.4.0 plugins/guests/linux/cap/halt.rb
vagrant-unbundled-2.1.2.0 plugins/guests/linux/cap/halt.rb
vagrant-packet-0.1.2 vendor/bundle/ruby/2.5.0/bundler/gems/vagrant-04f7215b5e3f/plugins/guests/linux/cap/halt.rb
vagrant-packet-0.1.2 vendor/bundle/ruby/2.3.0/bundler/gems/vagrant-04f7215b5e3f/plugins/guests/linux/cap/halt.rb
vagrant-packet-0.1.2 vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-04f7215b5e3f/plugins/guests/linux/cap/halt.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/bundler/gems/vagrant-04f7215b5e3f/plugins/guests/linux/cap/halt.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/bundler/gems/vagrant-04f7215b5e3f/plugins/guests/linux/cap/halt.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-04f7215b5e3f/plugins/guests/linux/cap/halt.rb
vagrant-unbundled-2.1.1.0 plugins/guests/linux/cap/halt.rb
vagrant-unbundled-2.0.4.0 plugins/guests/linux/cap/halt.rb
vagrant-unbundled-2.0.3.0 plugins/guests/linux/cap/halt.rb