Sha256: fd5312d87c3bb70d1f2a22f1bf735d48a7f84e21ddc6ef089b4bbf285173ff18

Contents?: true

Size: 373 Bytes

Versions: 27

Compression:

Stored size: 373 Bytes

Contents

module VagrantPlugins
  module GuestLinux
    module Cap
      class Halt
        def self.halt(machine)
          begin
            machine.communicate.sudo("shutdown -h now")
          rescue IOError
            # Do nothing, because it probably means the machine shut down
            # and SSH connection was lost.
          end
        end
      end
    end
  end
end

Version data entries

27 entries across 24 versions & 7 rubygems

Version Path
tamtam-vagrant-reload-1.1.3 vendor/cache/vagrant-0ac2a8738841/plugins/guests/linux/cap/halt.rb
tamtam-vagrant-reload-1.1.2 vendor/cache/vagrant-0ac2a8738841/plugins/guests/linux/cap/halt.rb
vagrant-compose-yaml-0.1.3 vendor/bundle/ruby/2.2.0/bundler/gems/vagrant-dbb756c7b6da/plugins/guests/linux/cap/halt.rb
vagrant-compose-yaml-0.1.2 vendor/bundle/ruby/2.2.0/bundler/gems/vagrant-dbb756c7b6da/plugins/guests/linux/cap/halt.rb
vagrant-compose-yaml-0.1.1 vendor/bundle/ruby/2.2.0/bundler/gems/vagrant-dbb756c7b6da/plugins/guests/linux/cap/halt.rb
vagrant-compose-yaml-0.1.0 vendor/bundle/ruby/2.2.0/bundler/gems/vagrant-dbb756c7b6da/plugins/guests/linux/cap/halt.rb
vagrant-unbundled-1.8.5.2 plugins/guests/linux/cap/halt.rb
vagrant-unbundled-1.8.5.1 plugins/guests/linux/cap/halt.rb
vagrant-unbundled-1.8.4.2 plugins/guests/linux/cap/halt.rb
vagrant-unbundled-1.8.4.1 plugins/guests/linux/cap/halt.rb
tamtam-vagrant-reload-1.1.1 vendor/cache/vagrant-0ac2a8738841/plugins/guests/linux/cap/halt.rb
tamtam-vagrant-reload-1.1 vendor/cache/vagrant-0ac2a8738841/plugins/guests/linux/cap/halt.rb
vagrant-unbundled-1.8.1.2 plugins/guests/linux/cap/halt.rb
vagrant-unbundled-1.8.1.1 plugins/guests/linux/cap/halt.rb
vagrant-cloudstack-1.1.0 vendor/bundle/bundler/gems/vagrant-b421af58e8b3/plugins/guests/linux/cap/halt.rb
vagrant-cloudstack-1.1.0 vendor/bundle/bundler/gems/vagrant-309e896975d1/plugins/guests/linux/cap/halt.rb
vagrant-cloudstack-1.1.0 vendor/bundle/bundler/gems/vagrant-272fb27e0536/plugins/guests/linux/cap/halt.rb
vagrant-cloudstack-1.1.0 vendor/bundle/bundler/gems/vagrant-1cf2a8db4ccb/plugins/guests/linux/cap/halt.rb
vagrant-tiktalik-0.0.3 vendor/bundle/ruby/2.0.0/bundler/gems/vagrant-1e28f1ac31e7/plugins/guests/linux/cap/halt.rb
tnargav-1.3.6 plugins/guests/linux/cap/halt.rb