summaryrefslogtreecommitdiffstats
path: root/lib/puppet/faces
Commit message (Collapse)AuthorAgeFilesLines
* maint: Remove unused faces codeMatt Robinson2011-04-193-30/+0
| | | | | | | Looks like in renaming faces to face we just missed some files. They got copied, not moved. Paired-with: Max Martin <max@puppetlabs.com>
* (#6928) Remove --parseonlyNick Lewis2011-04-133-0/+30
| | | | | | This has been removed in favor of 'puppet parser validate <manifest>'. Paired-With: Jesse Wolfe
* (#7056) Use 'face' rather than 'faces' in the production code.Daniel Pittman2011-04-1320-415/+0
| | | | | | | | | After some discussion we decided that most uses of the Puppet Face infrastructure were about single faces on their own, not about the collection, and so we were better referring to Puppet::Face[...] in code. This implements that by translating names and references in the Ruby code to the new, s-less, name.
* (#6962) Integrate legacy subcommands into the help face.Daniel Pittman2011-04-121-2/+10
| | | | | | | | | | | Previously we would only emit help for a face; now we fully integrate legacy subcommands in the sense that asking for face-level help will emit their entire help text. Asking for any action subsequent will raise an error: this is an annoyingly inconsistent behaviour, but there isn't a saner definition of the change. Reviewed-By: Matt Robinson <matt@puppetlabs.com>
* (#6962) Better argument checking for help.Daniel Pittman2011-04-121-7/+13
| | | | | | | | | | | We used to blink and miss the fact that we failed to load an action or face in the past; now we test for that, and fail with a clear error message when the user asks for something we can't deliver. Additionally, fix a couple of tests that were silently broken because they passed the wrong arguments, but still got some output. Paired-With: Matt Robinson <matt@puppetlabs.com>
* (#6962) Report the template filename for help render errors.Daniel Pittman2011-04-121-6/+11
| | | | | | | | We now set the filename attribute of the ERB instance, which results in any error messages showing up with the right attribution: to the file they are defined in, rather than just '(erb)'. Paired-With: Matt Robinson <matt@puppetlabs.com>
* (#6962) Move the logic for help layout into erb templates.Daniel Pittman2011-04-124-46/+44
| | | | | | | | Rather than hard-coding the layout of help output in the code, push it out into external templates. At the moment overriding that would require changing the ERB code next to puppet/faces/help.rb file on disk. Paired-With: Matt Robinson <matt@puppetlabs.com>
* (#6962) Add summary help for actions on an individual face.Daniel Pittman2011-04-121-15/+39
| | | | | | | | We now emit the summary of actions for an individual face, in the same format as the summary of available faces. This moves forward through the feature set defined for the help subcommand. Reviewed-By: Matt Robinson <matt@puppetlabs.com>
* (#6962) Extract summary from legacy applications for help.Daniel Pittman2011-04-121-6/+33
| | | | | | | | | We use a dubious, but effective, regexp match on the existing man(1) style help string for the application to extract the summary data. This should properly be implemented as a summary method down in the applications themselves... Paired-With: Matt Robinson <matt@puppetlabs.com>
* (#6962) Initial support for legacy applications in help.Daniel Pittman2011-04-121-1/+15
| | | | | | | | We now enumerate and print the list of legacy applications in the unadorned help action; this allows us a path to migrating forward smoothly while still providing a good user experience. Paired-With: Matt Robinson <matt@puppetlabs.com>
* (#6962) Implement Face#summary support for the help face.Daniel Pittman2011-04-121-2/+2
| | | | | | | | We now use the summary information available in other faces as part of emitting a list our list of available subcommands. This is seldom used in faces, but enough emit the information to prove the concept. Reviewed-By: Matt Robinson <matt@puppetlabs.com>
* (#6962) Create the basic shape of the help face.Daniel Pittman2011-04-121-0/+52
| | | | | | | | This implements the basic help face, along with the start of the support structures; we include the basic application, and the default help action that just emits a listing of faces and other discovered stuff... Reviewed-By: Matt Robinson <matt@puppetlabs.com>
* Merge puppet-interfaces into puppet.Daniel Pittman2011-04-071-1/+1
| | | | | This joins the two repositories, including full history, into a single run, as well as landing the interfaces work on the next branch ready for release.
* (#6985) Allows indirectors to accept a hash as an argument.Dan Bode2011-04-071-1/+1
| | | | | | | | | | Many indirectors need to take a hash as the last argument. This was not allowed b/c the last hash argument was assumed to be the options hash. I resolved this by assuming that the hash needed by an indirector would be the same as the options hash. Reviewed-By: Daniel Pittman <daniel@puppetlabs.com>
* (#7012) Split plumbing into Puppet::InterfaceDaniel Pittman2011-04-077-487/+0
| | | | | | | | | This splits out the plumbing into the Puppet::Interface namespace, and uses Puppet::Faces for all the public-facing code. The fault line is "what you care about if you are using or writing a face", which is public, against "what you care about to enable either of those two", which is the plumbing.
* (#7012) Update references in code to use face(s)Daniel Pittman2011-04-0723-114/+114
| | | | | The codebase is now using the new name, faces, uniformly to reference the objects contained. All tests pass.
* (#7012) global rename of strings to faces.Daniel Pittman2011-04-0723-0/+768
This just changes filenames and directories; files are exact copies rather than having additional modifications to make clearer each step of this process. This does leave a currently broken build. :/