Class: SparseImage::Command::Destroy
- Inherits:
-
Object
- Object
- SparseImage::Command::Destroy
- Defined in:
- lib/vagrant-sparseimage/command.rb
Instance Method Summary collapse
Instance Method Details
#execute ⇒ Object
107 108 109 110 111 112 113 |
# File 'lib/vagrant-sparseimage/command.rb', line 107 def execute @env.machine_names.each do |mname| machine = @env.machine(mname, :virtualbox) machine.ui.info("Destroying sparse images for machine #{mname}") SparseImage::destroy(machine) end end |
#help ⇒ Object
114 115 116 117 |
# File 'lib/vagrant-sparseimage/command.rb', line 114 def help @env.ui.info("Usage: vagrant sparseimage destroy") @env.ui.info("\tDestroy all configured sparse images") end |