terraform_landscape 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/terraform_landscape/printer.rb +6 -4
- data/lib/terraform_landscape/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bd09d5f8db4155993cb141a7c3023a85ea510457a36c4eba4d7a0d87ed6aa4e5
|
4
|
+
data.tar.gz: 7148ea8dd0ea53ff57ab5625202c6326f4c464fdc9d6cd2d8ef9902104697803
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5bda7f64b4916b216438f5f5b9affcf1f39d0052939eacf45cfca55faf7c2b5b71bb917637887e22b75e7cc3119d26b0a040f8d253b6342a274294a719c91c71
|
7
|
+
data.tar.gz: 433ad3a5df1022d2b8334a164334cfd0b44a3f627ea818ca37d130f6dbb4b8e30e452f03941fd054e7e8caccb378bc6387318939356320596966d482d2631f64
|
@@ -29,7 +29,9 @@ module TerraformLandscape
|
|
29
29
|
end
|
30
30
|
end
|
31
31
|
|
32
|
-
apply = apply_prompt(buffer.string
|
32
|
+
apply = apply_prompt(buffer.string.encode('UTF-8',
|
33
|
+
invalid: :replace,
|
34
|
+
replace: ''))
|
33
35
|
done = true if apply
|
34
36
|
end
|
35
37
|
process_string(buffer.string)
|
@@ -59,8 +61,8 @@ module TerraformLandscape
|
|
59
61
|
scrubbed_output = scrubbed_output[match.end(0)..-1]
|
60
62
|
elsif (match = scrubbed_output.match(/^\s*(~|\+|\-)/))
|
61
63
|
scrubbed_output = scrubbed_output[match.begin(0)..-1]
|
62
|
-
elsif scrubbed_output =~ /^(No changes
|
63
|
-
@output.puts 'No changes'
|
64
|
+
elsif scrubbed_output =~ /^(No changes\.|This plan does nothing)/
|
65
|
+
@output.puts 'No changes.'
|
64
66
|
return
|
65
67
|
else
|
66
68
|
raise ParseError, 'Output does not contain proper preface'
|
@@ -85,7 +87,7 @@ module TerraformLandscape
|
|
85
87
|
|
86
88
|
def apply_prompt(output)
|
87
89
|
return unless output =~ /Enter a value:\s+$/
|
88
|
-
output[/Do you want to perform these actions
|
90
|
+
output[/Do you want to perform these actions.*$/m, 0]
|
89
91
|
end
|
90
92
|
end
|
91
93
|
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.2.
|
4
|
+
version: 0.2.1
|
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: 2018-
|
12
|
+
date: 2018-09-23 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: colorize
|