Class: SparseImage::Command::Unmount

Inherits:
Object
  • Object
show all
Defined in:
lib/vagrant-sparseimage/command.rb

Instance Method Summary collapse

Instance Method Details

#executeObject



93
94
95
96
97
98
99
# File 'lib/vagrant-sparseimage/command.rb', line 93

def execute
  @env.machine_names.each do |mname|
    machine = @env.machine(mname, :virtualbox)
    machine.ui.info("Unmounting sparse images for machine #{mname}")
    SparseImage::unmount(machine)
  end
end

#helpObject



100
101
102
103
# File 'lib/vagrant-sparseimage/command.rb', line 100

def help
  @env.ui.info("Usage: vagrant sparseimage unmount")
  @env.ui.info("\tUnmount all configured sparse images")
end