Class: VagrantPlugins::SSHConfigCache::Action::CreateCache
- Inherits:
-
Object
- Object
- VagrantPlugins::SSHConfigCache::Action::CreateCache
- Defined in:
- lib/vagrant-ssh-config-cache/action/create_cache.rb
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app, env) ⇒ CreateCache
constructor
A new instance of CreateCache.
Constructor Details
#initialize(app, env) ⇒ CreateCache
Returns a new instance of CreateCache.
3 4 5 |
# File 'lib/vagrant-ssh-config-cache/action/create_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/create_cache.rb', line 7 def call(env) create_cache(env[:machine]) @app.call(env) end |