Class: VagrantPlugins::SSHConfigCache::Action::RemoveCache

Inherits:
Object
  • Object
show all
Defined in:
lib/vagrant-ssh-config-cache/action/remove_cache.rb

Instance Method Summary collapse

Constructor Details

#initialize(app, env) ⇒ RemoveCache

Returns a new instance of RemoveCache.



3
4
5
# File 'lib/vagrant-ssh-config-cache/action/remove_cache.rb', line 3

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

Instance Method Details

#call(env) ⇒ Object



7
8
9
10
# File 'lib/vagrant-ssh-config-cache/action/remove_cache.rb', line 7

def call(env)
  remove_cache(env[:machine])
  @app.call(env)
end