Class: SparseImage::Unmount
- Inherits:
-
Object
- Object
- SparseImage::Unmount
- Defined in:
- lib/vagrant-sparseimage.rb,
lib/vagrant-sparseimage.rb
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app, env) ⇒ Unmount
constructor
Shutdown hook Unmount the shared drive from the host machine Fails silently if the drive was not mounted.
Constructor Details
#initialize(app, env) ⇒ Unmount
Shutdown hook Unmount the shared drive from the host machine Fails silently if the drive was not mounted
199 200 201 202 |
# File 'lib/vagrant-sparseimage.rb', line 199 def initialize(app, env) @app = app @env = env end |
Instance Method Details
#call(env) ⇒ Object
203 204 205 206 207 |
# File 'lib/vagrant-sparseimage.rb', line 203 def call(env) vm = env[:machine] SparseImage::mount(vm) @app.call(env) end |