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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c7f3d2d5097f859aca6b9b54eb06dd39b18e56413619087f8a63c022886dbe88
4
- data.tar.gz: 636f94e4fa483d77ef9acfbc69a208b8aa939fa99b8a5f5184acc9f49e3805e0
3
+ metadata.gz: 807b4c88d54ee98534840da643a704ca78f84327be4803ea25654ad34e799d32
4
+ data.tar.gz: acedad3d477df680649f2e27efaa8fbd29e3b688d1542ac5f2d0bbba51dfdf98
5
5
  SHA512:
6
- metadata.gz: 59a0ccde1b6a9cf07603846f6eed12733d553082df504cb3967ac8843ff5b2a3bd5a5e789283e7403c7ec3e740910310c4421ad6aa8bc3597ab6bc33da49acd8
7
- data.tar.gz: beec70098377f90991a3a11824de7c73876efe3d9f82e048102689a68ea94eb5502bbbb92f9ab62c226d04bba4ed618ba74803860dbd835468cf77ca9ba36c7e
6
+ metadata.gz: f3b0193de45c09eecec12e597fff20534b8875ed479cba08707ebd125ec859c410334e0937ad7444993fa759879281517af2c8a5bf5569c750e9bef17ef985fc
7
+ data.tar.gz: 3974ec03a5f3df9c72042b01efd30a6bcab499c1036c2644c36ea5ab8ce9017903ba5fe2c25060430e3b57f04e715c60ac577a9617c3efecc9041ddd05959e92
@@ -1,3 +1,3 @@
1
1
  module TerraformSynthesizer
2
- VERSION = %(0.0.17).freeze
2
+ VERSION = %(0.0.19).freeze
3
3
  end
@@ -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
- raise ArgumentError, %(not assigning anything to this #{block_key}) if args[0].nil? || args[0].empty?
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: terraform-synthesizer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.17
4
+ version: 0.0.19
5
5
  platform: ruby
6
6
  authors:
7
7
  - drzthslnt@gmail.com