diff options
author | David Schmitt <david@schmitt.edv-bus.at> | 2008-08-02 13:16:10 +0200 |
---|---|---|
committer | David Schmitt <david@schmitt.edv-bus.at> | 2008-08-02 13:16:10 +0200 |
commit | 13ae7fbace9434091d5381208f7b25ff8cf3a5c3 (patch) | |
tree | 4633face1eab8f9b7655e38cc953d6895c98f6aa /plugins/puppet/parser/functions | |
parent | 3d96669da75329622f46a764b4244a8aee1a146a (diff) |
minor fixes to .ignore and docs
Diffstat (limited to 'plugins/puppet/parser/functions')
-rw-r--r-- | plugins/puppet/parser/functions/gsub.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/puppet/parser/functions/gsub.rb b/plugins/puppet/parser/functions/gsub.rb index 371820f..e2410ff 100644 --- a/plugins/puppet/parser/functions/gsub.rb +++ b/plugins/puppet/parser/functions/gsub.rb @@ -1,5 +1,9 @@ -# generic gsub call module Puppet::Parser::Functions + # thin wrapper around the ruby gsub function + # gsub($string, $pattern, $replacement) will replace all occurrences of + # $pattern in $string with $replacement. $string can be either a singel + # value or an array. In the latter case, each element of the array will + # be processed in turn. newfunction(:gsub, :type => :rvalue) do |args| if args[0].is_a?(Array) args[0].collect do |val| |