Sha256: fbea83689f7a7cfe52a7b8697a3f6e2ad69f7f1a856aba70fadc036c8375d8e9

Contents?: true

Size: 616 Bytes

Versions: 15

Compression:

Stored size: 616 Bytes

Contents

module VagrantPlugins
  module GuestSmartos
    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.smartos.suexec_cmd} /usr/sbin/shutdown -y -i5 -g0")
          rescue IOError
            # Ignore, this probably means connection closed because it
            # shut down.
          end
        end
      end
    end
  end
end

Version data entries

15 entries across 12 versions & 4 rubygems

Version Path
vagrant-compose-yaml-0.1.3 vendor/bundle/ruby/2.2.0/bundler/gems/vagrant-dbb756c7b6da/plugins/guests/smartos/cap/halt.rb
vagrant-compose-yaml-0.1.2 vendor/bundle/ruby/2.2.0/bundler/gems/vagrant-dbb756c7b6da/plugins/guests/smartos/cap/halt.rb
vagrant-compose-yaml-0.1.1 vendor/bundle/ruby/2.2.0/bundler/gems/vagrant-dbb756c7b6da/plugins/guests/smartos/cap/halt.rb
vagrant-compose-yaml-0.1.0 vendor/bundle/ruby/2.2.0/bundler/gems/vagrant-dbb756c7b6da/plugins/guests/smartos/cap/halt.rb
vagrant-unbundled-1.8.5.2 plugins/guests/smartos/cap/halt.rb
vagrant-unbundled-1.8.5.1 plugins/guests/smartos/cap/halt.rb
vagrant-unbundled-1.8.4.2 plugins/guests/smartos/cap/halt.rb
vagrant-unbundled-1.8.4.1 plugins/guests/smartos/cap/halt.rb
vagrant-unbundled-1.8.1.2 plugins/guests/smartos/cap/halt.rb
vagrant-unbundled-1.8.1.1 plugins/guests/smartos/cap/halt.rb
vagrant-cloudstack-1.1.0 vendor/bundle/bundler/gems/vagrant-b421af58e8b3/plugins/guests/smartos/cap/halt.rb
vagrant-cloudstack-1.1.0 vendor/bundle/bundler/gems/vagrant-1cf2a8db4ccb/plugins/guests/smartos/cap/halt.rb
vagrant-cloudstack-1.1.0 vendor/bundle/bundler/gems/vagrant-309e896975d1/plugins/guests/smartos/cap/halt.rb
vagrant-cloudstack-1.1.0 vendor/bundle/bundler/gems/vagrant-272fb27e0536/plugins/guests/smartos/cap/halt.rb
vagrant-tiktalik-0.0.3 vendor/bundle/ruby/2.0.0/bundler/gems/vagrant-1e28f1ac31e7/plugins/guests/smartos/cap/halt.rb