Class Puppet::Module::Tool::Repository
In: lib/puppet/module/tool/repository.rb
Parent: Object

Repository

This class is a file for accessing remote repositories with modules.

Methods

Included Modules

Utils::URI Utils::Interrogation

Attributes

cache  [R] 
uri  [R] 

Public Class methods

Instantiate a new repository instance rooted at the optional string url, else an instance of the default Puppet modules repository.

Public Instance methods

Set the HTTP Basic Authentication parameters for the Net::HTTPRequest request by asking the user for input on the console.

Return the cache key for this repository, this a hashed string based on the URI.

Return a Net::HTTPResponse read for this request.

Options:

  • :authenticate => Request authentication on the terminal. Defaults to false.

Return a Net::HTTPResponse read from this HTTPRequest request.

Return the local file name containing the data downloaded from the repository at release (e.g. "myuser-mymodule").

Return the URI string for this repository.

[Validate]