Sha256: 77911c52a8324875193fcb6acd31861bccae527762ecfa680b739c1a6242ebe3

Contents?: true

Size: 492 Bytes

Versions: 21

Compression:

Stored size: 492 Bytes

Contents

module Vagrant
  module Guest
    class OpenBSD < Base
      def halt
        vm.channel.sudo("shutdown -p -h now")

        # Wait until the VM's state is actually powered off. If this doesn't
        # occur within a reasonable amount of time then simply return which
        # will cause Vagrant to force kill the machine.
        count = 0
        while vm.state != :poweroff
          count += 1

          return if count >= 30
          sleep 1
        end
      end
    end
  end
end

Version data entries

21 entries across 21 versions & 6 rubygems

Version Path
bmhatfield-vagrant-1.0.10 lib/vagrant/guest/openbsd.rb
bmhatfield-vagrant-1.0.9 lib/vagrant/guest/openbsd.rb
bmhatfield-vagrant-1.0.8 lib/vagrant/guest/openbsd.rb
bmhatfield-vagrant-1.0.7 lib/vagrant/guest/openbsd.rb
vagrantup-1.0.7 lib/vagrant/guest/openbsd.rb
vagrantup-1.0.6 lib/vagrant/guest/openbsd.rb
vagrantup-1.0.5 lib/vagrant/guest/openbsd.rb
vagrantup-1.0.4 lib/vagrant/guest/openbsd.rb
vagrantup-1.0.3 lib/vagrant/guest/openbsd.rb
vagrantup-1.0.2 lib/vagrant/guest/openbsd.rb
vagrantup-1.0.1 lib/vagrant/guest/openbsd.rb
vagrant-fixed-ssh-1.0.7 lib/vagrant/guest/openbsd.rb
vagrant-1.0.7 lib/vagrant/guest/openbsd.rb
vagrant-1.0.6 lib/vagrant/guest/openbsd.rb
boxcar-0.10005.1 lib/vagrant/guest/openbsd.rb
fragrant-0.0.5 vendor/bundle/ruby/1.9.1/gems/vagrant-1.0.5/lib/vagrant/guest/openbsd.rb
vagrant-1.0.5 lib/vagrant/guest/openbsd.rb
vagrant-1.0.4 lib/vagrant/guest/openbsd.rb
vagrant-1.0.3 lib/vagrant/guest/openbsd.rb
vagrant-1.0.2 lib/vagrant/guest/openbsd.rb