summaryrefslogtreecommitdiffstats
path: root/lib/puppet/face/node.rb
Commit message (Collapse)AuthorAgeFilesLines
* (#7833) Several help text/template editsnfagerlund2011-06-081-0/+1
| | | | | | | | | | | | | | | | This commit makes the following changes: * Changes wrapping on some "returns" blocks to accomodate the way we prepend "RETURNS: " to the first line in short help. * Overrides description for save on faces where save is invalid. (Since save has an inherited description, the description was contradicting the summary.) * Adds notes on dummy arguments to short_description where applicable, so as to show up in short help. * Adds the termini list to the action short help template. * Removes the authors block from short help for faces. (Save it for the man page.) * Several trivial wording changes. Reviewed-By: Jacob Helwig <jacob@puppetlabs.com>
* (#7764, 7775, 7778) Revisions to Faces help textnfagerlund2011-06-071-10/+15
| | | | | | | | | | | | | | Per UX review of help text, this commit makes several changes over the breadth of the Faces help: * Preface API-only action summaries/descriptions with "API only." (issue #7775) * Provide both CLI and API info in "returns," with the CLI info first. (issue #7778) * Summaries should be sentences. (Add punctuation.) * First sentences of descriptions should reiterate summaries. (Summaries and descriptions should be displayed far enough apart that this isn't a problem.) * Standardize on "subcommand" instead of "face" when talking about the entity you invoke at the command line. (Use "face" when describing API use.) * Fix outdated or clunky text in several faces.
* (#7563) DRY: Remove indirector boilerplate from individual facesnfagerlund2011-05-261-13/+0
| | | | | Termini lists are now being generated in the help templates. This commit removes the hardcoded lists from each of the affected faces.
* (#7561) Complete help text for all faces and actionsnfagerlund2011-05-261-8/+32
| | | | | | Faces help output relies on input from the documentation methods in each of the faces to be documented. This commit calls those methods in each of our faces, with varying levels of detail depending on their complexity.
* (Maint) Adjust documentation whitespacenfagerlund2011-05-041-11/+13
| | | | | The patch from issue #7221 permits indented heredocs. This patch takes advantage of that to make the doc strings less messy.
* (#6962) Add self-documentation data to puppet facesnfagerlund2011-05-041-2/+15
| | | | | | This patch adds documentation strings to most of the faces, actions, and options introduced in 2.7.0. There are a small number of TK notes remaining, and longer strings have not been indented to take advantage of the patch from issue #7221.
* maint: move the indirector face base out of puppet/faceDaniel Pittman2011-05-021-2/+2
| | | | | | | | | We used to shove the base class Puppet::Face::Indirector next to the actual faces; this made a bunch of things, including testing, confusing. Instead, move it away into the indirector where it lives with the rest of the indirector related things. Reviewed-By: Nick Lewis <nick@puppetlabs.com>
* (#6962) Give copyright and license for all faces.Daniel Pittman2011-04-261-0/+3
| | | | | Now we have the capability, mark all our faces copyright the company and under the Apache 2 license, which indeed they are.
* (#6962) Fill out documentation on Faces and ActionsDaniel Pittman2011-04-261-2/+3
| | | | | | This uses the documentation we had written, wiring it into the existing faces and actions. This helps fill out the need to document these things before they ship.
* Merge remote-tracking branch ↵Daniel Pittman2011-04-211-0/+4
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | 'remotes/lak/tickets/next/7118-summaries_for_all_faces' into 2.7.x Fix conflicts due to version drift in: lib/puppet/face/certificate.rb lib/puppet/face/facts.rb lib/puppet/face/node.rb lib/puppet/face/secret_agent.rb spec/lib/puppet/face/basetest.rb spec/unit/face/help_spec.rb Reviewed-By: Markus Roberts <markus@puppetlabs.com>
| * (7118) Adding summaries for all facesLuke Kanies2011-04-141-0/+5
| | | | | | | | | | | | | | | | | | It's usually just a one-liner, but when I saw an obvious opportunity for longer docs, I've added a @longdocs variable that can be converted to longer forms when ready. Signed-off-by: Luke Kanies <luke@puppetlabs.com>
* | (#7013) Strip out old face-wide rendering defaults.Daniel Pittman2011-04-191-2/+0
|/ | | | | | | | | | | | | Now we want to support action-based rendering, it is super-hard to define the semantics around defaulting where things are unspecified: the execution context (CLI, HTTP, etc) vs the face, vs the action all have different semantics. Without solving the problem of how we express all that context and those semantics down in the action, especially one written by a third party, this just becomes a box of counter-intuitive and annoying semantics and edge-cases. Reviewed-By: Max Martin <max@puppetlabs.com>
* (#7056) Use 'face' rather than 'faces' in the production code.Daniel Pittman2011-04-131-0/+5
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.