Sha256: 4f51a13df569613e7d953b215d0a2edcc021ee900181d7bbaa6b5327fc3bcac3

Contents?: true

Size: 377 Bytes

Versions: 12

Compression:

Stored size: 377 Bytes

Contents

module VagrantPlugins
  module GuestVyOS
    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

12 entries across 12 versions & 1 rubygems

Version Path
vagrant-vyos-1.1.12 lib/vagrant-vyos/cap/halt.rb
vagrant-vyos-1.1.10 lib/vagrant-vyos/cap/halt.rb
vagrant-vyos-1.1.9 lib/vagrant-vyos/cap/halt.rb
vagrant-vyos-1.1.7 lib/vagrant-vyos/cap/halt.rb
vagrant-vyos-1.1.6 lib/vagrant-vyos/cap/halt.rb
vagrant-vyos-1.1.5 lib/vagrant-vyos/cap/halt.rb
vagrant-vyos-1.1.4 lib/vagrant-vyos/cap/halt.rb
vagrant-vyos-1.1.3 lib/vagrant-vyos/cap/halt.rb
vagrant-vyos-1.1.2 lib/vagrant-vyos/cap/halt.rb
vagrant-vyos-1.1.1 lib/vagrant-vyos/cap/halt.rb
vagrant-vyos-1.1.0 lib/vagrant-vyos/cap/halt.rb
vagrant-vyos-1.0.0 lib/vagrant-vyos/cap/halt.rb