terraspace 0.6.8 → 0.6.9

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: ac0b4566fae8a6be4cfb7907e60d1d0ec3cdf4f7426989a68e5a7c22c55b4cc5
4
- data.tar.gz: 66bd6807da803a3891ba2d78b5e21e5dcf0af2e8a1ed303ceb8c9e70c6916ea7
3
+ metadata.gz: 0d88e968da03e187d230fad5e1785995ffa95415146a9a2b7cfe500c0e54473a
4
+ data.tar.gz: 49535538ad977e0d7b36620037a70478e6bfdf9c9bc607feff4576724fc351fd
5
5
  SHA512:
6
- metadata.gz: d14b3c79add9cf2075c27682ad466f4afeb474a21943868d3dc1260afd129d127387e0089fa44e08e695bb5c28080b6dcbfdcd6774c3fff244782a50dd8a4f7c
7
- data.tar.gz: c54ed8c38625bccd2ce424a18b70b4ca9198a4921bf10a57e452e0c6d7b1f2ae500f9565ba123cbaa071d7fec9767fa1d263e8a315dc1427ea5d983c8309c790
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
 
@@ -53,14 +53,30 @@ module Terraspace
53
53
 
54
54
  lines = buffer.split("\n")
55
55
  lines.each do |line|
56
- terraform_to_stdout(line)
57
- handle_input(stdin, line)
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 terraform_to_stdout(line)
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
@@ -1,3 +1,3 @@
1
1
  module Terraspace
2
- VERSION = "0.6.8"
2
+ VERSION = "0.6.9"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: terraspace
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.8
4
+ version: 0.6.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tung Nguyen