diff options
author | Daniel Pittman <daniel@puppetlabs.com> | 2011-04-18 17:29:21 -0700 |
---|---|---|
committer | Daniel Pittman <daniel@puppetlabs.com> | 2011-04-19 10:53:49 -0700 |
commit | 0fed94fbbad45388c1f9d2451d946681d80643f8 (patch) | |
tree | 7d583ad4aa0e2709c5deddfcefafae1e67283ca9 /lib/puppet/interface/documentation.rb | |
parent | 12098f2d54e8e00a687f42837deeef65c7759389 (diff) | |
download | puppet-0fed94fbbad45388c1f9d2451d946681d80643f8.tar.gz puppet-0fed94fbbad45388c1f9d2451d946681d80643f8.tar.xz puppet-0fed94fbbad45388c1f9d2451d946681d80643f8.zip |
(#7013) Wire up rendering hooks on the CLI.
We now find, and call, the appropriate rendering hooks on actions during the
rendering phase. This allows the user to intercept and replace the result
object that passes through the rest of the rendering system on the fly.
Example usage:
action :foo do
when_rendering :pson do |result|
{ :whatever => result[a],
:foobar => result[b],
}
end
end
Reviewed-By: Max Martin <max@puppetlabs.com>
Diffstat (limited to 'lib/puppet/interface/documentation.rb')
0 files changed, 0 insertions, 0 deletions