aboutsummaryrefslogtreecommitdiff
path: root/plugins/puppet/parser/functions/prefix_with.rb
blob: 6e64a4a8e36f6fabbb179070fb93a36491524931 (plain)
1
2
3
4
5
6
7
8
9
# 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