Class: PuppetLibrary::Forge::Cache
- Defined in:
- lib/puppet_library/forge/cache.rb
Instance Method Summary collapse
-
#initialize(url, cache_dir, http_client = PuppetLibrary::Http::HttpClient.new) ⇒ Cache
constructor
A new instance of Cache.
Methods inherited from Proxy
#get_module_buffer, #get_module_metadata, #get_module_metadata_with_dependencies, #search_modules
Constructor Details
#initialize(url, cache_dir, http_client = PuppetLibrary::Http::HttpClient.new) ⇒ Cache
Returns a new instance of Cache.
23 24 25 |
# File 'lib/puppet_library/forge/cache.rb', line 23 def initialize(url, cache_dir, http_client = PuppetLibrary::Http::HttpClient.new) super(url, PuppetLibrary::Http::Cache::InMemory.new, PuppetLibrary::Http::Cache::Disk.new(cache_dir), http_client) end |