terraform-synthesizer 0.0.17 → 0.0.19
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/terraform-synthesizer/version.rb +1 -1
- data/lib/terraform-synthesizer.rb +5 -4
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 807b4c88d54ee98534840da643a704ca78f84327be4803ea25654ad34e799d32
|
4
|
+
data.tar.gz: acedad3d477df680649f2e27efaa8fbd29e3b688d1542ac5f2d0bbba51dfdf98
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f3b0193de45c09eecec12e597fff20534b8875ed479cba08707ebd125ec859c410334e0937ad7444993fa759879281517af2c8a5bf5569c750e9bef17ef985fc
|
7
|
+
data.tar.gz: 3974ec03a5f3df9c72042b01efd30a6bcab499c1036c2644c36ea5ab8ce9017903ba5fe2c25060430e3b57f04e715c60ac577a9617c3efecc9041ddd05959e92
|
@@ -29,7 +29,10 @@ class TerraformSynthesizer < AbstractSynthesizer
|
|
29
29
|
def method_missing(method_name, *args, &)
|
30
30
|
BLOCK_KEYS.each do |block_key|
|
31
31
|
if @in_block_key
|
32
|
-
|
32
|
+
if args[0].nil? || args[0].empty?
|
33
|
+
raise ArgumentError,
|
34
|
+
%(not assigning anything to this #{block_key})
|
35
|
+
end
|
33
36
|
|
34
37
|
@in_block_key = false
|
35
38
|
@translation[:template][block_key.to_sym][method_name.to_sym] = args[0]
|
@@ -38,10 +41,8 @@ class TerraformSynthesizer < AbstractSynthesizer
|
|
38
41
|
|
39
42
|
@translation = {} if @translation.nil?
|
40
43
|
@translation[:template] = {} if @translation[:template].nil?
|
44
|
+
@translation[:template][block_key.to_sym] = {} \
|
41
45
|
if @translation[:template][block_key.to_sym].nil?
|
42
|
-
@translation[:template][block_key.to_sym] =
|
43
|
-
{}
|
44
|
-
end
|
45
46
|
@in_block_key = true
|
46
47
|
|
47
48
|
yield
|