Sha256: e1cd1fc78e39a802e158ad222394a9af9353648b87a847329971cb03fd786980

Contents?: true

Size: 407 Bytes

Versions: 1

Compression:

Stored size: 407 Bytes

Contents

module VagrantPlugins
  module GuestTinyCore
    module Cap
      class Halt
        def self.halt(machine)
          begin
            machine.communicate.sudo("poweroff")
          rescue Net::SSH::Disconnect, 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

1 entries across 1 versions & 1 rubygems

Version Path
vagrant-cloudstack-1.2.0 vendor/bundle/bundler/gems/vagrant-c84e05fd063f/plugins/guests/tinycore/cap/halt.rb