Sha256: 4d2735aaeec3adfb49618113ee076d20f3e2fec11ad63f56729308bdb4c5cd87

Contents?: true

Size: 412 Bytes

Versions: 42

Compression:

Stored size: 412 Bytes

Contents

module VagrantPlugins
  module GuestSUSE
    module Cap
      class Halt
        def self.halt(machine)
          begin
            machine.communicate.sudo("/sbin/shutdown -h now")
          rescue IOError, Vagrant::Errors::SSHDisconnected
            # Do nothing, because it probably means the machine shut down
            # and SSH connection was lost.
          end
        end
      end
    end
  end
end

Version data entries

42 entries across 38 versions & 4 rubygems

Version Path
vagrant-unbundled-2.2.16.0 plugins/guests/suse/cap/halt.rb
vagrant-unbundled-2.2.14.0 plugins/guests/suse/cap/halt.rb
vagrant-aws-mkubenka-0.7.2.pre.24 vendor/bundle/ruby/2.7.0/bundler/gems/vagrant-22795b161bf6/plugins/guests/suse/cap/halt.rb
vagrant-unbundled-2.2.10.0 plugins/guests/suse/cap/halt.rb
vagrant-unbundled-2.2.9.0 plugins/guests/suse/cap/halt.rb
vagrant-unbundled-2.2.8.0 plugins/guests/suse/cap/halt.rb
vagrant-unbundled-2.2.7.0 plugins/guests/suse/cap/halt.rb
vagrant-unbundled-2.2.6.2 plugins/guests/suse/cap/halt.rb
vagrant-unbundled-2.2.6.1 plugins/guests/suse/cap/halt.rb
vagrant-unbundled-2.2.6.0 plugins/guests/suse/cap/halt.rb
vagrant-unbundled-2.2.5.0 plugins/guests/suse/cap/halt.rb
vagrant-unbundled-2.2.4.0 plugins/guests/suse/cap/halt.rb
vagrant-unbundled-2.2.3.0 plugins/guests/suse/cap/halt.rb
vagrant-unbundled-2.2.2.0 plugins/guests/suse/cap/halt.rb
vagrant-unbundled-2.2.0.0 plugins/guests/suse/cap/halt.rb
vagrant-unbundled-2.1.4.0 plugins/guests/suse/cap/halt.rb
vagrant-unbundled-2.1.2.0 plugins/guests/suse/cap/halt.rb
vagrant-packet-0.1.2 vendor/bundle/ruby/2.3.0/bundler/gems/vagrant-04f7215b5e3f/plugins/guests/suse/cap/halt.rb
vagrant-packet-0.1.2 vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-04f7215b5e3f/plugins/guests/suse/cap/halt.rb
vagrant-packet-0.1.2 vendor/bundle/ruby/2.5.0/bundler/gems/vagrant-04f7215b5e3f/plugins/guests/suse/cap/halt.rb