Class: Vagrant::Actions::Box::Destroy
- Inherits:
-
Vagrant::Actions::Base
- Object
- Vagrant::Actions::Base
- Vagrant::Actions::Box::Destroy
- Defined in:
- lib/vagrant/actions/box/destroy.rb
Overview
Action to destroy a box. This action is not reversible and expects to be called by a Vagrant::Actions::Box object.
Instance Attribute Summary
Attributes inherited from Vagrant::Actions::Base
Instance Method Summary collapse
Methods inherited from Vagrant::Actions::Base
#cleanup, #follows, #initialize, #precedes, #prepare, #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
#execute! ⇒ Object
7 8 9 10 |
# File 'lib/vagrant/actions/box/destroy.rb', line 7 def execute! logger.info "Deleting box directory..." FileUtils.rm_rf(@runner.directory) end |