Sha256: bd7a9663752c9f4c044fe90c54159894c2380c0cb5043f037e5566dd5b71d89e
Contents?: true
Size: 461 Bytes
Versions: 18
Compression:
Stored size: 461 Bytes
Contents
# Find default values for variables specified as args # module Puppet::Parser::Functions newfunction(:dump_values) do |args| options = [] options<< false if Puppet::PUPPETVERSION.start_with?('2.6') data = Hash[args.map { |arg| [arg, lookupvar(arg, *options)] }] dump_dir = YAML.load_file(lookupvar('kafo_config_file'))[:default_values_dir] File.open("#{dump_dir}/default_values.yaml", 'w') { |file| file.write(YAML.dump(data)) } end end
Version data entries
18 entries across 18 versions & 1 rubygems