Sha256: 241314a325fd69a9a329649f177fc34f381603ecf6d5e3f66aee6292ad5abc87

Contents?: true

Size: 321 Bytes

Versions: 14

Compression:

Stored size: 321 Bytes

Contents

module Vagrant
  module Actions
    module VM
      class Halt < Base
        def execute!
          raise ActionException.new("VM is not running! Nothing to shut down!") unless @runner.vm.running?

          logger.info "Forcing shutdown of VM..."
          @runner.vm.stop(true)
        end
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 2 rubygems

Version Path
vagrantup-0.2.0 lib/vagrant/actions/vm/halt.rb
vagrantup-0.1.4 lib/vagrant/actions/vm/halt.rb
vagrantup-0.1.3 lib/vagrant/actions/vm/halt.rb
vagrantup-0.1.2 lib/vagrant/actions/vm/halt.rb
vagrantup-0.1.1 lib/vagrant/actions/vm/halt.rb
vagrantup-0.1.0 lib/vagrant/actions/vm/halt.rb
vagrant-0.2.0 lib/vagrant/actions/vm/halt.rb
vagrant-0.2.0.pre lib/vagrant/actions/vm/halt.rb
vagrant-0.1.4 lib/vagrant/actions/vm/halt.rb
vagrant-0.1.4.pre.a lib/vagrant/actions/vm/halt.rb
vagrant-0.1.3 lib/vagrant/actions/vm/halt.rb
vagrant-0.1.2 lib/vagrant/actions/vm/halt.rb
vagrant-0.1.1 lib/vagrant/actions/vm/halt.rb
vagrant-0.1.0 lib/vagrant/actions/vm/halt.rb