module-common/lib/puppet/parser/functions/prefix_with.rb

10 lines
208 B
Ruby
Raw Normal View History

2008-02-29 16:51:51 +01:00
# prefix arguments 2..n with first argument
module Puppet::Parser::Functions
newfunction(:prefix_with, :type => :rvalue) do |args|
prefix = args.shift
args.collect {|v| "%s%s" % [prefix, v] }
end
end