Sha256: a28aabfad426452be0a9844dbd1a1dc1452ab1a62d04d0a25500f1ce3f010cf1

Contents?: true

Size: 379 Bytes

Versions: 5

Compression:

Stored size: 379 Bytes

Contents

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

5 entries across 5 versions & 1 rubygems

Version Path
vagrant-vyatta-0.0.5 lib/vagrant-vyatta/cap/halt.rb
vagrant-vyatta-0.0.4 lib/vagrant-vyatta/cap/halt.rb
vagrant-vyatta-0.0.3 lib/vagrant-vyatta/cap/halt.rb
vagrant-vyatta-0.0.2 lib/vagrant-vyatta/cap/halt.rb
vagrant-vyatta-0.0.1 lib/vagrant-vyatta/cap/halt.rb