rake_terraform 1.24.0.pre.10 → 1.24.0.pre.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +5 -5
- data/lib/rake_terraform/task_sets/terraform.rb +16 -12
- data/lib/rake_terraform/version.rb +1 -1
- data/rake_terraform.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2af21295f7f6faa349bc011f84a229c377e62122930811cd1d747684504df572
|
4
|
+
data.tar.gz: 66321894cf4267b042b187724dfdd914506da963eb02d9eca263595f50664326
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a4cdb9f7f271a250fd38fc4217c1bf82f0f2af96a240afe8d154eaec9a0cbacee8dfbc8967c627422ba97228a9b0bec2f367547af3041e133bcb39fcc3a9a139
|
7
|
+
data.tar.gz: e1b3d81c95b503d1a58391ab08385f5baef311a6a678a372c4b8808a871749da724d0ccbfc6a5393abd20111c15805785ba0f9e0f994f61292dbc49c70b2ebf8
|
data/Gemfile.lock
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
rake_terraform (1.24.0.pre.
|
4
|
+
rake_terraform (1.24.0.pre.12)
|
5
5
|
colored2 (~> 3.1)
|
6
6
|
rake_dependencies (= 3.6.0.pre.7)
|
7
7
|
rake_factory (~> 0.23)
|
8
|
-
ruby-terraform (= 1.8.0.pre.
|
8
|
+
ruby-terraform (= 1.8.0.pre.8)
|
9
9
|
|
10
10
|
GEM
|
11
11
|
remote: https://rubygems.org/
|
@@ -69,7 +69,7 @@ GEM
|
|
69
69
|
immutable-struct (2.4.1)
|
70
70
|
json (2.7.2)
|
71
71
|
language_server-protocol (3.17.0.3)
|
72
|
-
lino (3.2.0.pre.
|
72
|
+
lino (3.2.0.pre.9)
|
73
73
|
childprocess (~> 5.0.0)
|
74
74
|
hamster (~> 3.0)
|
75
75
|
open4 (~> 1.3)
|
@@ -177,9 +177,9 @@ GEM
|
|
177
177
|
rubocop-rspec (3.0.2)
|
178
178
|
rubocop (~> 1.61)
|
179
179
|
ruby-progressbar (1.13.0)
|
180
|
-
ruby-terraform (1.8.0.pre.
|
180
|
+
ruby-terraform (1.8.0.pre.8)
|
181
181
|
immutable-struct (~> 2.4)
|
182
|
-
lino (= 3.2.0.pre.
|
182
|
+
lino (= 3.2.0.pre.9)
|
183
183
|
ruby_git_crypt (0.1.0.pre.4)
|
184
184
|
immutable-struct (~> 2.4)
|
185
185
|
lino (~> 3.0)
|
@@ -1,6 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require 'rake'
|
4
|
+
require 'tempfile'
|
4
5
|
|
5
6
|
module RakeTerraform
|
6
7
|
module TaskSets
|
@@ -142,17 +143,20 @@ module RakeTerraform
|
|
142
143
|
end
|
143
144
|
|
144
145
|
def correct_version?(binary)
|
145
|
-
result =
|
146
|
+
result = Tempfile.new
|
146
147
|
command = version_command(binary)
|
147
148
|
|
148
149
|
log_version_lookup(command)
|
149
150
|
|
150
151
|
command.execute(stdout: result)
|
151
152
|
|
152
|
-
|
153
|
-
|
153
|
+
result.rewind
|
154
|
+
output = result.read
|
154
155
|
|
155
|
-
|
156
|
+
log_version_information(output)
|
157
|
+
log_check_outcome(output)
|
158
|
+
|
159
|
+
contains_version_number?(output)
|
156
160
|
end
|
157
161
|
|
158
162
|
def version_command(binary)
|
@@ -173,25 +177,25 @@ module RakeTerraform
|
|
173
177
|
)
|
174
178
|
end
|
175
179
|
|
176
|
-
def log_version_information(
|
180
|
+
def log_version_information(output)
|
177
181
|
logger.info(
|
178
|
-
"Terraform version information is: \n#{
|
182
|
+
"Terraform version information is: \n#{output}"
|
179
183
|
)
|
180
184
|
end
|
181
185
|
|
182
|
-
def log_check_outcome(
|
186
|
+
def log_check_outcome(output)
|
183
187
|
logger.debug(
|
184
188
|
"Version: '#{version}' is in version line: " \
|
185
|
-
"'#{version_line(
|
189
|
+
"'#{version_line(output)}'?: #{contains_version_number?(output)}"
|
186
190
|
)
|
187
191
|
end
|
188
192
|
|
189
|
-
def version_line(
|
190
|
-
|
193
|
+
def version_line(output)
|
194
|
+
output.lines.first
|
191
195
|
end
|
192
196
|
|
193
|
-
def contains_version_number?(
|
194
|
-
version_line(
|
197
|
+
def contains_version_number?(output)
|
198
|
+
version_line(output) =~ /#{version}/
|
195
199
|
end
|
196
200
|
end
|
197
201
|
|
data/rake_terraform.gemspec
CHANGED
@@ -40,7 +40,7 @@ Gem::Specification.new do |spec|
|
|
40
40
|
spec.add_dependency 'colored2', '~> 3.1'
|
41
41
|
spec.add_dependency 'rake_dependencies', '3.6.0.pre.7'
|
42
42
|
spec.add_dependency 'rake_factory', '~> 0.23'
|
43
|
-
spec.add_dependency 'ruby-terraform', '1.8.0.pre.
|
43
|
+
spec.add_dependency 'ruby-terraform', '1.8.0.pre.8'
|
44
44
|
|
45
45
|
spec.add_development_dependency 'activesupport'
|
46
46
|
spec.add_development_dependency 'bundler'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rake_terraform
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.24.0.pre.
|
4
|
+
version: 1.24.0.pre.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- InfraBlocks Maintainers
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-07-
|
11
|
+
date: 2024-07-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: colored2
|
@@ -58,14 +58,14 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - '='
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 1.8.0.pre.
|
61
|
+
version: 1.8.0.pre.8
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - '='
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 1.8.0.pre.
|
68
|
+
version: 1.8.0.pre.8
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: activesupport
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|