Class Puppet::Module::Tool::Cache
In: lib/puppet/module/tool/cache.rb
Parent: Object

Cache

Provides methods for reading files from local cache, filesystem or network.

Methods

base_path   clean   new   path   read_retrieve   retrieve  

Included Modules

Puppet::Module::Tool::Utils::URI

Public Class methods

Return the base Pathname for all the caches.

Clean out all the caches.

Instantiate new cahe for the repositry instance.

Public Instance methods

Return Pathname for repository‘s cache directory, create it if needed.

Return contents of file at the given URI‘s uri.

Return filename retrieved from uri instance. Will download this file and cache it if needed.

TODO: Add checksum support. TODO: Add error checking.

[Validate]