Puppet Function: configparser_format

Defined in:
modules/graphite/lib/puppet/parser/functions/configparser_format.rb
Function type:
Ruby 3.x API

Overview

configparser_format()Any

Returns:

  • (Any)


33
34
35
36
37
38
# File 'modules/graphite/lib/puppet/parser/functions/configparser_format.rb', line 33

newfunction(:configparser_format, :type => :rvalue) do |args|
  unless args.any? && args.all? { |a| a.is_a? Hash }
    fail 'configparser_format() requires one or more hash arguments'
  end
  configparser_format(rmerge(*args))
end