summaryrefslogtreecommitdiff
path: root/lib/puppet/parser/functions/prefix_with.rb
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2011-02-14 12:11:35 -0200
committerSilvio Rhatto <rhatto@riseup.net>2011-02-14 12:11:35 -0200
commit0b03f41b32e8423bbbfa3c8a6b02dbf17c04f4c1 (patch)
treec5d7863c96377394b8559fbd5c7777fb32b6fda1 /lib/puppet/parser/functions/prefix_with.rb
parente0080adb1ca115ee98bf97c9cfb91fccbfeddaac (diff)
parenta81984c77ed1efb56e978d8b5050b6c3ec409d80 (diff)
Merge branch 'master' of git://labs.riseup.net/shared-common
Conflicts: lib/puppet/parser/functions/gsub.rb lib/puppet/parser/functions/prefix_with.rb lib/puppet/parser/functions/slash_escape.rb lib/puppet/parser/functions/split.rb lib/puppet/parser/functions/substitute.rb manifests/classes/lsb_release.pp manifests/defines/concatenated_file.pp manifests/defines/config_file.pp manifests/defines/line.pp manifests/defines/module_dir.pp manifests/defines/module_file.pp manifests/defines/replace.pp manifests/init.pp
Diffstat (limited to 'lib/puppet/parser/functions/prefix_with.rb')
-rw-r--r--lib/puppet/parser/functions/prefix_with.rb14
1 files changed, 2 insertions, 12 deletions
diff --git a/lib/puppet/parser/functions/prefix_with.rb b/lib/puppet/parser/functions/prefix_with.rb
index 5a12986..6e64a4a 100644
--- a/lib/puppet/parser/functions/prefix_with.rb
+++ b/lib/puppet/parser/functions/prefix_with.rb
@@ -1,15 +1,5 @@
-# Prefixes arguments 2..n with first argument.
-#
-# prefix_with(string prefix, string[] arguments) : string[]
-#
-# Example:
-#
-# prefix_with("php-", [ "blah", "foo" ])
-#
-# will result in this array:
-#
-# [ "php-blah", "php-foo" ]
-#
+# prefix arguments 2..n with first argument
+
module Puppet::Parser::Functions
newfunction(:prefix_with, :type => :rvalue) do |args|
prefix = args.shift