terraform_landscape 0.1.12 → 0.1.13

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
  SHA1:
3
- metadata.gz: f682330a7a4f46678cbf7dd2c636d1db2ed74227
4
- data.tar.gz: e19679eaf90e6bcc25a263c6d818182cd6158bda
3
+ metadata.gz: fbd7b66255c313690b7ad1f24ca1094adae7f455
4
+ data.tar.gz: debdd3838d78716fa2ab7eb9ea56da5fddf413c1
5
5
  SHA512:
6
- metadata.gz: 46da28c7b0e04cda9203b30f9e76b0c960f58bf5136f6938b12d5fdd83542bf3cbd9bda02dc984e9565eadf1dcfbd79fe66e35b79e2dd9d75591364c1e35024d
7
- data.tar.gz: ee4292b6e2ceda2049be07effb2ae924d21ddf44b681a649a25c67c25c680fdbf474e38bed4a5c4f7e8ab342d73deddf3f0e57cf6e795d4c8575f533232235b2
6
+ metadata.gz: 4e187d64db7f61e204d7b39ee60e0b0a868c780234b18cc4587be67660cbedb91f8db9d379994431942c8211bbf2263ecbd7d55515fc9387672991d7890efe6b
7
+ data.tar.gz: fc27ace9da9d095b7bdc8ff05fce4a15634c916e0277fb32966cf8be93e2f325ae6e62ff99036d55bce5264869b2bb7c47fc161563de7caec25c3f7892351176
@@ -38,6 +38,18 @@ grammar TerraformPlan
38
38
  end
39
39
 
40
40
  rule resource_header
41
+ _? change:('~' / '-/+' / '-' / '+' / '<=') _ type:[a-zA-Z0-9_-]+ '.' name:[\S]+ _ '(' reason1:[^)]+ ')' _ '(' reason2:[^)]+ ')' {
42
+ def to_ast
43
+ {
44
+ change: change.text_value.to_sym,
45
+ resource_type: type.text_value,
46
+ resource_name: name.text_value,
47
+ reason: reason1.text_value,
48
+ additional_reason: reason2.text_value,
49
+ }
50
+ end
51
+ }
52
+ /
41
53
  _? change:('~' / '-/+' / '-' / '+' / '<=') _ type:[a-zA-Z0-9_-]+ '.' name:[\S]+ _ '(' reason:[^)]+ ')' {
42
54
  def to_ast
43
55
  {
@@ -70,6 +70,7 @@ class TerraformLandscape::TerraformPlan # rubocop:disable Metrics/ClassLength
70
70
  resource_header = "#{resource[:change]} #{resource[:resource_type]}." \
71
71
  "#{resource[:resource_name]}".colorize(change_color)
72
72
  resource_header += " (#{resource[:reason]})".colorize(:magenta) if resource[:reason]
73
+ resource_header += " (#{resource[:additional_reason]})".colorize(:magenta) if resource[:additional_reason]
73
74
 
74
75
  @out.puts resource_header
75
76
 
@@ -2,5 +2,5 @@
2
2
 
3
3
  # Defines the gem version.
4
4
  module TerraformLandscape
5
- VERSION = '0.1.12'.freeze
5
+ VERSION = '0.1.13'.freeze
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: terraform_landscape
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.12
4
+ version: 0.1.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Coinbase
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-09-21 00:00:00.000000000 Z
12
+ date: 2017-09-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: colorize