kafo 0.3.9 → 0.3.10
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of kafo might be problematic. Click here for more details.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a64613da7237f085eda0a644e760cc3142b9d36a
|
4
|
+
data.tar.gz: 7d2c756d8f03292efd9a7cfccbc3a1f80a89739a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b6481ea79612e53eb2a11ff48389d5277d001756424bb84eb42799900250d12e47dddd25c1ab9fb419251be5477294e50e5e2e31c004d0839d0829042a46194c
|
7
|
+
data.tar.gz: 8bf3c9827d8d93a06f112fa638f579c210602bf0be3ceb53a1dcc7a4aa65dbada9bb961c32378aa63b12ea996570590832d37d1c1da815eaa1cbb5a35b4fa371
|
data/lib/kafo/version.rb
CHANGED
@@ -4,7 +4,11 @@ module Puppet::Parser::Functions
|
|
4
4
|
newfunction(:dump_values) do |args|
|
5
5
|
options = []
|
6
6
|
options<< false if Puppet::PUPPETVERSION.start_with?('2.6')
|
7
|
-
data =
|
7
|
+
data = args.map do |arg|
|
8
|
+
found_value = lookupvar(arg, *options)
|
9
|
+
[arg, found_value.nil? ? arg : found_value]
|
10
|
+
end
|
11
|
+
data = Hash[data]
|
8
12
|
dump_dir = YAML.load_file(lookupvar('kafo_config_file'))[:default_values_dir]
|
9
13
|
File.open("#{dump_dir}/default_values.yaml", 'w') { |file| file.write(YAML.dump(data)) }
|
10
14
|
end
|