Sha256: a72fa6c8e71a70d593a854b34df47bb72c64da0b90985540c1ea1f05a24ef59c

Contents?: true

Size: 507 Bytes

Versions: 21

Compression:

Stored size: 507 Bytes

Contents

# rubocop:disable Style/RedundantBegin
# rubocop:disable Lint/HandleExceptions
#
# FIXME: address disabled warnings
#
module VagrantPlugins
  module GuestAlpine
    module Cap
      class Halt
        def self.halt(machine)
          begin
            machine.communicate.sudo('poweroff')
          rescue Net::SSH::Disconnect, IOError
            # Ignore, this probably means connection closed because it
            # shut down and SSHd was stopped.
          end
        end
      end
    end
  end
end

Version data entries

21 entries across 21 versions & 4 rubygems

Version Path
vagrant-unbundled-2.3.6.0 plugins/guests/alpine/cap/halt.rb
tamtam-vagrant-reload-1.2.1 vendor/cache/vagrant-2092df529ae7/plugins/guests/alpine/cap/halt.rb
vagrant-unbundled-2.3.3.0 plugins/guests/alpine/cap/halt.rb
vagrant-unbundled-2.3.2.0 plugins/guests/alpine/cap/halt.rb
vagrant-unbundled-2.2.19.0 plugins/guests/alpine/cap/halt.rb
vagrant-unbundled-2.2.18.0 plugins/guests/alpine/cap/halt.rb
vagrant-unbundled-2.2.16.0 plugins/guests/alpine/cap/halt.rb
vagrant-unbundled-2.2.14.0 plugins/guests/alpine/cap/halt.rb
vagrant-aws-mkubenka-0.7.2.pre.24 vendor/bundle/ruby/2.7.0/bundler/gems/vagrant-22795b161bf6/plugins/guests/alpine/cap/halt.rb
vagrant-unbundled-2.2.10.0 plugins/guests/alpine/cap/halt.rb
vagrant-unbundled-2.2.9.0 plugins/guests/alpine/cap/halt.rb
vagrant-unbundled-2.2.8.0 plugins/guests/alpine/cap/halt.rb
vagrant-unbundled-2.2.7.0 plugins/guests/alpine/cap/halt.rb
vagrant-unbundled-2.2.6.2 plugins/guests/alpine/cap/halt.rb
vagrant-unbundled-2.2.6.1 plugins/guests/alpine/cap/halt.rb
vagrant-unbundled-2.2.6.0 plugins/guests/alpine/cap/halt.rb
vagrant-alpine-0.4.0 lib/vagrant-alpine/cap/halt.rb
vagrant-alpine-0.3.0 lib/vagrant-alpine/cap/halt.rb
vagrant-alpine-0.2.0 lib/vagrant-alpine/cap/halt.rb
vagrant-alpine-0.1.3 lib/vagrant-alpine/cap/halt.rb