terraspace 0.6.8 → 0.6.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/terraspace/shell.rb +19 -3
- data/lib/terraspace/version.rb +1 -1
- 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: 0d88e968da03e187d230fad5e1785995ffa95415146a9a2b7cfe500c0e54473a
|
|
4
|
+
data.tar.gz: 49535538ad977e0d7b36620037a70478e6bfdf9c9bc607feff4576724fc351fd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3d0a9476e10f46a504c555212aa538968045d27845eabcec4c43306a008422dce9b19c28b4d0ce16defce89bc78674c01098c08291af6e321f85f2385e6390f0
|
|
7
|
+
data.tar.gz: 27563820dafa65f85df07ce9e28430a75b7ffb6330b2440444b6a88803efa3f851d9524ae5c0417039a3d698a62896b2071fb84b8de30e93a42c03ad64941dbd
|
data/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,9 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
This project *loosely tries* to adhere to [Semantic Versioning](http://semver.org/), even before v1.0.
|
|
5
5
|
|
|
6
|
+
## [0.6.9] - 2021-05-07
|
|
7
|
+
- [#112](https://github.com/boltops-tools/terraspace/pull/112) fix smart auto retry
|
|
8
|
+
|
|
6
9
|
## [0.6.8] - 2021-05-07
|
|
7
10
|
- [#110](https://github.com/boltops-tools/terraspace/pull/110) fix popen deadlock with large amounts of output [#97](https://github.com/boltops-tools/terraspace/pull/97) Terraspace hangs when TF_LOG=TRACE environment variable exists #97
|
|
8
11
|
|
data/lib/terraspace/shell.rb
CHANGED
|
@@ -53,14 +53,30 @@ module Terraspace
|
|
|
53
53
|
|
|
54
54
|
lines = buffer.split("\n")
|
|
55
55
|
lines.each do |line|
|
|
56
|
-
|
|
57
|
-
|
|
56
|
+
if f.fileno == stdout.fileno
|
|
57
|
+
handle_stdout(line)
|
|
58
|
+
handle_input(stdin, line)
|
|
59
|
+
else
|
|
60
|
+
handle_stderr(line)
|
|
61
|
+
end
|
|
58
62
|
end
|
|
59
63
|
end
|
|
60
64
|
end
|
|
61
65
|
end
|
|
62
66
|
end
|
|
63
67
|
|
|
68
|
+
def handle_stderr(line)
|
|
69
|
+
@error ||= Error.new
|
|
70
|
+
@error.lines << line # aggregate all error lines
|
|
71
|
+
|
|
72
|
+
return if @error.known?
|
|
73
|
+
# Sometimes may print a "\e[31m\n" which like during dependencies fetcher init
|
|
74
|
+
# suppress it so dont get a bunch of annoying "newlines"
|
|
75
|
+
return if line == "\e[31m\n" && @options[:suppress_error_color]
|
|
76
|
+
|
|
77
|
+
logger.error(line)
|
|
78
|
+
end
|
|
79
|
+
|
|
64
80
|
def all_eof?(files)
|
|
65
81
|
files.find { |f| !f.eof }.nil?
|
|
66
82
|
end
|
|
@@ -93,7 +109,7 @@ module Terraspace
|
|
|
93
109
|
end
|
|
94
110
|
end
|
|
95
111
|
|
|
96
|
-
def
|
|
112
|
+
def handle_stdout(line)
|
|
97
113
|
prompted = line.include?('Enter a value')
|
|
98
114
|
@prompt_shown ||= prompted
|
|
99
115
|
return if @prompt_shown && prompted
|
data/lib/terraspace/version.rb
CHANGED