Class: VagrantPlugins::HostsUpdater::Action::CacheHosts

Inherits:
Object
  • Object
show all
Includes:
VagrantPlugins::HostsUpdater
Defined in:
lib/vagrant-multi-hostsupdater/Action/CacheHosts.rb

Instance Method Summary collapse

Methods included from VagrantPlugins::HostsUpdater

source_root

Constructor Details

#initialize(app, env) ⇒ CacheHosts



7
8
9
10
# File 'lib/vagrant-multi-hostsupdater/Action/CacheHosts.rb', line 7

def initialize(app, env)
  @app = app
  @machine = env[:machine]
end

Instance Method Details

#call(env) ⇒ Object



12
13
14
15
# File 'lib/vagrant-multi-hostsupdater/Action/CacheHosts.rb', line 12

def call(env)
  cacheHostEntries
  @app.call(env)
end