Class: Vagrant::Actions::VM::Down

Inherits:
Base
  • Object
show all
Defined in:
lib/vagrant/actions/vm/down.rb

Instance Attribute Summary

Attributes inherited from Base

#runner

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

#prepareObject



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