summaryrefslogtreecommitdiffstats
path: root/lib/puppet/face/plugin.rb
diff options
context:
space:
mode:
authornfagerlund <nick.fagerlund@gmail.com>2011-04-27 10:46:47 -0700
committernfagerlund <nick.fagerlund@gmail.com>2011-05-04 16:01:49 -0700
commitdce072a87c0a47b4edc76ca988029ee8b626eeb6 (patch)
treefbe957fa36250a44821f8f5d19ffbc1481a5ae34 /lib/puppet/face/plugin.rb
parent855a0ec0deba9fdbaa113260eef8cb8c28e6f5b6 (diff)
downloadpuppet-dce072a87c0a47b4edc76ca988029ee8b626eeb6.tar.gz
puppet-dce072a87c0a47b4edc76ca988029ee8b626eeb6.tar.xz
puppet-dce072a87c0a47b4edc76ca988029ee8b626eeb6.zip
(#6962) Add self-documentation data to puppet faces
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.
Diffstat (limited to 'lib/puppet/face/plugin.rb')
-rw-r--r--lib/puppet/face/plugin.rb16
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/puppet/face/plugin.rb b/lib/puppet/face/plugin.rb
index 8a2559405..f55bd3b28 100644
--- a/lib/puppet/face/plugin.rb
+++ b/lib/puppet/face/plugin.rb
@@ -4,6 +4,16 @@ Puppet::Face.define(:plugin, '0.0.1') do
license "Apache 2 license; see COPYING"
summary "Interact with the Puppet plugin system"
+ description <<-EOT
+This face provides network access to the puppet master's store of
+plugins. It is intended for use in other faces, rather than for direct
+command line access.
+ EOT
+ notes <<-EOT
+The puppet master can serve Ruby code collected from the lib directories
+of its modules. These plugins can be used on agent nodes to extend
+Facter and implement custom types and providers.
+ EOT
action :download do
summary "Download plugins from the configured master"
@@ -11,6 +21,12 @@ Puppet::Face.define(:plugin, '0.0.1') do
An array containing the files actually downloaded.
This will be empty array when everything was in sync.
EOT
+ notes "This action modifies files on disk without returning any data."
+ examples <<-EOT
+Retrieve plugins from the puppet master:
+
+ Puppet::Face[:plugin, '0.0.1'].download
+ EOT
when_invoked do |options|
require 'puppet/configurer/downloader'