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
tnargav-1.3.3 plugins/guests/linux/cap/halt.rb
vagrant-shell-0.2.9 demo/templates/vendor/bundle/ruby/1.9.1/gems/tnargav-1.2.2/plugins/guests/linux/cap/halt.rb
tnargav-1.2.3 plugins/guests/linux/cap/halt.rb
vagrant-shell-0.2.8 demo/templates/vendor/bundle/ruby/1.9.1/gems/tnargav-1.2.2/plugins/guests/linux/cap/halt.rb
vagrant-shell-0.2.6 vendor/bundle/gems/tnargav-1.2.2/plugins/guests/linux/cap/halt.rb
vagrant-shell-0.2.5 vendor/bundle/gems/tnargav-1.2.2/plugins/guests/linux/cap/halt.rb
tnargav-1.2.2 plugins/guests/linux/cap/halt.rb