Class: VagrantPlugins::MultiHostsUpdater::Action::CacheHosts

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

Instance Method Summary collapse

Methods included from MultiHostsUpdater

#addHostEntries, #addToHosts, #cacheHostEntries, #getHostEntries, #getHostnames, #getIps, #host_entry, #removeFromHosts, #removeHostEntries, #signature, #sudo

Constructor Details

#initialize(app, env) ⇒ CacheHosts

Returns a new instance of 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