rake_terraform 1.24.0.pre.10 → 1.24.0.pre.11
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: 1a94de1bacbe77668a1df35aebb5c414560687e8aa8fe9ac01b8a1c666f25993
|
4
|
+
data.tar.gz: 58b27f1c25951f93c07c8584de3850ead8f4bf6d9620c71513c46829c4ac0f06
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 16ff2e9a0db63155f7fbd3b17369d7ded7668a6a8fd930861f401fe083c1c61687f1ad94d7f8c2e294e16eafad16a826511e7b2e92a359d6f58cf3f1a5393aef
|
7
|
+
data.tar.gz: 03346d2443af2e977b2be1f5a61157ee196e89600f4180d2980e8c077c36a6d620a3733fe3b829c1d2ed37389fff2d06c980cc3e799dd3cff68340ae99e5811a
|
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.11)
|
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.string.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.11
|
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
|