4a1f3245d0
this creates a new config setting, merge_default_java_args, that users may set to false to override the default java_args.
8 lines
234 B
Ruby
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
|