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-packet-0.1.1 vendor/bundle/ruby/2.3.0/bundler/gems/vagrant-04f7215b5e3f/plugins/guests/suse/cap/halt.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/bundler/gems/vagrant-04f7215b5e3f/plugins/guests/suse/cap/halt.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-04f7215b5e3f/plugins/guests/suse/cap/halt.rb
vagrant-unbundled-2.1.1.0 plugins/guests/suse/cap/halt.rb
vagrant-unbundled-2.0.4.0 plugins/guests/suse/cap/halt.rb
vagrant-unbundled-2.0.3.0 plugins/guests/suse/cap/halt.rb
vagrant-aws-detiber-0.7.2.pre.4 vendor/bundle/ruby/2.3.0/bundler/gems/vagrant-419afb4dcffe/plugins/guests/suse/cap/halt.rb
vagrant-aws-detiber-0.7.2.pre.3 vendor/bundle/ruby/2.3.0/bundler/gems/vagrant-419afb4dcffe/plugins/guests/suse/cap/halt.rb
vagrant-aws-detiber-0.7.2.pre.2 vendor/bundle/ruby/2.3.0/bundler/gems/vagrant-419afb4dcffe/plugins/guests/suse/cap/halt.rb
vagrant-unbundled-2.0.2.0 plugins/guests/suse/cap/halt.rb
vagrant-unbundled-2.0.1.0 plugins/guests/suse/cap/halt.rb
vagrant-aws-mkubenka-0.7.2.pre.22 vendor/bundle/ruby/2.3.0/bundler/gems/vagrant-f3fdbf414272/plugins/guests/suse/cap/halt.rb
vagrant-aws-mkubenka-0.7.2.pre.16 vendor/bundle/ruby/2.3.0/bundler/gems/vagrant-1ee58c40e3f5/plugins/guests/suse/cap/halt.rb
vagrant-unbundled-2.0.0.1 plugins/guests/suse/cap/halt.rb
vagrant-unbundled-1.9.8.1 plugins/guests/suse/cap/halt.rb
vagrant-unbundled-1.9.7.1 plugins/guests/suse/cap/halt.rb
vagrant-aws-mkubenka-0.7.2.pre.14 vendor/bundle/ruby/2.3.0/bundler/gems/vagrant-5333e60e2d38/plugins/guests/suse/cap/halt.rb
vagrant-aws-mkubenka-0.7.2.pre.11 vendor/bundle/ruby/2.3.0/bundler/gems/vagrant-5333e60e2d38/plugins/guests/suse/cap/halt.rb
vagrant-aws-mkubenka-0.7.2.pre.10 vendor/bundle/ruby/2.3.0/bundler/gems/vagrant-5333e60e2d38/plugins/guests/suse/cap/halt.rb
vagrant-aws-mkubenka-0.7.2.pre.9 vendor/bundle/ruby/2.3.0/bundler/gems/vagrant-5333e60e2d38/plugins/guests/suse/cap/halt.rb