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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fbd7b66255c313690b7ad1f24ca1094adae7f455
|
4
|
+
data.tar.gz: debdd3838d78716fa2ab7eb9ea56da5fddf413c1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
|
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.
|
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-
|
12
|
+
date: 2017-09-22 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: colorize
|