Sha256: 237e7827cb1923e4a8f55c7bf27c8654f46af65755c3777cca13ded8b4cef815

Contents?: true

Size: 380 Bytes

Versions: 7

Compression:

Stored size: 380 Bytes

Contents

module VagrantPlugins
  module GuestOpenWrt
    module Cap
      class Halt
        def self.halt(machine)
          begin
            machine.communicate.execute("halt")
          rescue IOError, Vagrant::Errors::SSHDisconnected
            # Ignore, this probably means connection closed because it
            # shut down.
          end
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
vagrant-unbundled-2.3.6.0 plugins/guests/openwrt/cap/halt.rb
tamtam-vagrant-reload-1.2.1 vendor/cache/vagrant-2092df529ae7/plugins/guests/openwrt/cap/halt.rb
vagrant-unbundled-2.3.3.0 plugins/guests/openwrt/cap/halt.rb
vagrant-unbundled-2.3.2.0 plugins/guests/openwrt/cap/halt.rb
vagrant-unbundled-2.2.19.0 plugins/guests/openwrt/cap/halt.rb
vagrant-unbundled-2.2.18.0 plugins/guests/openwrt/cap/halt.rb
vagrant-unbundled-2.2.16.0 plugins/guests/openwrt/cap/halt.rb