Sha256: 0803c20b8a32824544bb50321418df258fa2184e81261fe0a84d2908331de9a7

Contents?: true

Size: 590 Bytes

Versions: 6

Compression:

Stored size: 590 Bytes

Contents

module VagrantPlugins
  module GuestSolaris
    module Cap
      class Halt
        def self.halt(machine)
          # There should be an exception raised if the line
          #
          #     vagrant::::profiles=Primary Administrator
          #
          # does not exist in /etc/user_attr. TODO
          begin
            machine.communicate.execute("#{machine.config.solaris.suexec_cmd} /usr/sbin/poweroff")
          rescue IOError
            # Ignore, this probably means connection closed because it
            # shut down.
          end
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
vagrant-shell-0.2.9 demo/templates/vendor/bundle/ruby/1.9.1/gems/tnargav-1.2.2/plugins/guests/solaris/cap/halt.rb
tnargav-1.2.3 plugins/guests/solaris/cap/halt.rb
vagrant-shell-0.2.8 demo/templates/vendor/bundle/ruby/1.9.1/gems/tnargav-1.2.2/plugins/guests/solaris/cap/halt.rb
vagrant-shell-0.2.6 vendor/bundle/gems/tnargav-1.2.2/plugins/guests/solaris/cap/halt.rb
vagrant-shell-0.2.5 vendor/bundle/gems/tnargav-1.2.2/plugins/guests/solaris/cap/halt.rb
tnargav-1.2.2 plugins/guests/solaris/cap/halt.rb