puppetlabs/puppet — pull request #762 by zaphod42 (2012-05-11 20:38:20+00:00)
Title: (#14387) user agent for module tool

This pull request changes the puppet module face to send a User-Agent header to the forge to identify itself. The User-Agent will contain the version of the module tool, the version of puppet, the operating system, and the version of ruby that is being used.

This pull request also ensures that Puppet::Forge does not depend on the Puppet::Face code. In order to achieve that the module face now is responsible for creating the correct Puppet::Forge object and handing
that to the various components of the face for execution.

The Puppet::Face now provides an interface for interacting with the repository in ways that various users were doing by asking for the repository directly.