cloud_former 0.7.6 → 0.7.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cloud_former/functions/if.rb +4 -0
- data/lib/cloud_former/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e66d4728fe7e5e2501f858fc528f8849e9e95d1a
|
4
|
+
data.tar.gz: 09adbaffceb256bd691646f743d03557e2a4c6f8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 90254cac0d3a64cd67896c183d5147aca083975e89e12065be6196f1737eb766464b43de255ea075797fba3a044035f6b15d702d72a189fffc920329c0755daf
|
7
|
+
data.tar.gz: 489c45cddcc49d5454e4d028d5ab908f5199c3625b6fa458f364a73bbe2b00684990e79d877ec57c83427fe7fe6b5d113aab2a5bd3e21031a3e42fcd69098d27
|
@@ -11,12 +11,16 @@ module CloudFormer
|
|
11
11
|
def dump_json
|
12
12
|
if @true_value.respond_to?(:get_name)
|
13
13
|
tv = { 'Ref' => @value1.get_name }
|
14
|
+
elsif @true_value.is_a?(Function)
|
15
|
+
tv = @true_value.dump_json
|
14
16
|
elsif @true_value.respond_to?(:to_s)
|
15
17
|
tv = @true_value.to_s
|
16
18
|
end
|
17
19
|
|
18
20
|
if @false_value.respond_to?(:get_name)
|
19
21
|
fv = { 'Ref' => @false_value.get_name }
|
22
|
+
elsif @false_value.is_a?(Function)
|
23
|
+
fv = @false_value.dump_json
|
20
24
|
elsif @false_value.respond_to?(:to_s)
|
21
25
|
fv = @false_value.to_s
|
22
26
|
end
|
data/lib/cloud_former/version.rb
CHANGED