Class: Vagrant::Action::VM::ClearSharedFolders

Inherits:
Object
  • Object
show all
Defined in:
lib/vagrant/action/vm/clear_shared_folders.rb

Instance Method Summary collapse

Constructor Details

#initialize(app, env) ⇒ ClearSharedFolders

Returns a new instance of ClearSharedFolders.



5
6
7
8
# File 'lib/vagrant/action/vm/clear_shared_folders.rb', line 5

def initialize(app, env)
  @app = app
  @env = env
end

Instance Method Details

#call(env) ⇒ Object



10
11
12
13
14
# File 'lib/vagrant/action/vm/clear_shared_folders.rb', line 10

def call(env)
  env[:vm].driver.clear_shared_folders

  @app.call(env)
end