module-puppetdb/lib/puppet/parser/functions/puppetdb_flatten_java_args.rb
Wyatt Alt 4a1f3245d0 (PDB-1430) overwritable java_args
this creates a new config setting, merge_default_java_args, that users may set
to false to override the default java_args.
2015-09-21 15:27:23 -07:00

8 lines
234 B
Ruby

module Puppet::Parser::Functions
newfunction(:puppetdb_flatten_java_args, :type => :rvalue) do |args|
java_args = args[0] || {}
args = ""
java_args.each {|k,v| args += "#{k}#{v} "}
"\"#{args.chomp(' ')}\""
end
end