diff options
author | Daniel Pittman <daniel@puppetlabs.com> | 2011-04-04 14:34:51 -0700 |
---|---|---|
committer | Daniel Pittman <daniel@puppetlabs.com> | 2011-04-04 14:35:13 -0700 |
commit | 4d2a367b0cf5bf03588b1e6bbfafdf437bea249e (patch) | |
tree | 6f731f99d1e0e51ee4ba613851cc49b90633b27f /lib/puppet/string/config.rb | |
parent | 75ef3af26fcd205f316358b2f23abe5e200f6eaf (diff) | |
download | puppet-4d2a367b0cf5bf03588b1e6bbfafdf437bea249e.tar.gz puppet-4d2a367b0cf5bf03588b1e6bbfafdf437bea249e.tar.xz puppet-4d2a367b0cf5bf03588b1e6bbfafdf437bea249e.zip |
(#6964) use 'when_invoked' rather than 'invoke' for actions.
In the DSL we want to use 'when_invoked do' because it reads much more
naturally for users.
Reviewed-By: Pieter van de Bruggen <pieter@puppetlabs.com>
Diffstat (limited to 'lib/puppet/string/config.rb')
-rw-r--r-- | lib/puppet/string/config.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/puppet/string/config.rb b/lib/puppet/string/config.rb index 49a1688fc..8a9417148 100644 --- a/lib/puppet/string/config.rb +++ b/lib/puppet/string/config.rb @@ -2,7 +2,7 @@ require 'puppet/string' Puppet::String.define(:config, '0.0.1') do action(:print) do - invoke do |*args| + when_invoked do |*args| options = args.pop Puppet.settings[:configprint] = args.join(",") Puppet.settings.print_config_options |