Class: Vagrant::Actions::VM::Down
- Defined in:
- lib/vagrant/actions/vm/down.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#cleanup, #execute!, #follows, #initialize, #precedes, #rescue
Methods included from Util
#error_and_exit, included, #logger, #wrap_output
Constructor Details
This class inherits a constructor from Vagrant::Actions::Base
Instance Method Details
#prepare ⇒ Object
5 6 7 8 |
# File 'lib/vagrant/actions/vm/down.rb', line 5 def prepare @runner.add_action(Halt) if @runner.vm.running? @runner.add_action(Destroy) end |