puppetlabs/puppet — pull request #1288 by zaphod42 (2012-11-21 23:50:25+00:00)
Title: (Partial #7316) CommandLine uses puppet as a library

This is the first step towards getting faces to load from modules.

This step is to get a clean set of bootstraping steps for which users of puppet
as a library can use to get puppet to the point of being able to execute code,
including finding and loading applications. This documents the various pieces
of code that CommandLine uses to achieve its results, cleans up how CommandLine
does that, and exposes other aspects of functionality that CommandLine needed
in order to work only with methods that were commented as being public API.