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

Version Path
kafo-0.3.8 modules/kafo_configure/lib/puppet/parser/functions/dump_values.rb
kafo-0.3.7 modules/kafo_configure/lib/puppet/parser/functions/dump_values.rb
kafo-0.3.6 modules/kafo_configure/lib/puppet/parser/functions/dump_values.rb
kafo-0.3.5 modules/kafo_configure/lib/puppet/parser/functions/dump_values.rb
kafo-0.3.4 modules/kafo_configure/lib/puppet/parser/functions/dump_values.rb
kafo-0.3.3 modules/kafo_configure/lib/puppet/parser/functions/dump_values.rb
kafo-0.3.2 modules/kafo_configure/lib/puppet/parser/functions/dump_values.rb
kafo-0.2.2 modules/kafo_configure/lib/puppet/parser/functions/dump_values.rb
kafo-0.3.1 modules/kafo_configure/lib/puppet/parser/functions/dump_values.rb
kafo-0.3.0 modules/kafo_configure/lib/puppet/parser/functions/dump_values.rb
kafo-0.2.1 modules/kafo_configure/lib/puppet/parser/functions/dump_values.rb
kafo-0.2.0 modules/kafo_configure/lib/puppet/parser/functions/dump_values.rb
kafo-0.1.0 modules/kafo_configure/lib/puppet/parser/functions/dump_values.rb
kafo-0.0.17 modules/kafo_configure/lib/puppet/parser/functions/dump_values.rb
kafo-0.0.16 modules/kafo_configure/lib/puppet/parser/functions/dump_values.rb
kafo-0.0.15 modules/kafo_configure/lib/puppet/parser/functions/dump_values.rb
kafo-0.0.14 modules/kafo_configure/lib/puppet/parser/functions/dump_values.rb
kafo-0.0.13 modules/kafo_configure/lib/puppet/parser/functions/dump_values.rb