rake_terraform 1.24.0.pre.9 → 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 +32 -36
- data/lib/rake_terraform/task_sets/provider.rb +16 -16
- data/lib/rake_terraform/task_sets/terraform.rb +30 -26
- data/lib/rake_terraform/version.rb +1 -1
- data/lib/rake_terraform.rb +2 -2
- data/rake_terraform.gemspec +2 -2
- metadata +8 -8
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,16 +1,16 @@
|
|
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 (
|
8
|
+
ruby-terraform (= 1.8.0.pre.8)
|
9
9
|
|
10
10
|
GEM
|
11
11
|
remote: https://rubygems.org/
|
12
12
|
specs:
|
13
|
-
activesupport (7.1.3.
|
13
|
+
activesupport (7.1.3.4)
|
14
14
|
base64
|
15
15
|
bigdecimal
|
16
16
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
@@ -20,28 +20,29 @@ GEM
|
|
20
20
|
minitest (>= 5.1)
|
21
21
|
mutex_m
|
22
22
|
tzinfo (~> 2.0)
|
23
|
-
addressable (2.8.
|
24
|
-
public_suffix (>= 2.0.2, <
|
23
|
+
addressable (2.8.7)
|
24
|
+
public_suffix (>= 2.0.2, < 7.0)
|
25
25
|
ast (2.4.2)
|
26
26
|
base64 (0.2.0)
|
27
27
|
bigdecimal (3.1.8)
|
28
|
+
childprocess (5.0.0)
|
28
29
|
coderay (1.1.3)
|
29
30
|
colored2 (3.1.2)
|
30
|
-
concurrent-ruby (1.
|
31
|
+
concurrent-ruby (1.3.3)
|
31
32
|
connection_pool (2.4.1)
|
32
33
|
diff-lcs (1.5.1)
|
33
34
|
docile (1.4.0)
|
34
35
|
down (5.4.2)
|
35
36
|
addressable (~> 2.8)
|
36
37
|
drb (2.2.1)
|
37
|
-
excon (0.
|
38
|
+
excon (0.111.0)
|
38
39
|
fakefs (2.5.0)
|
39
|
-
faraday (2.
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
ffi (1.
|
40
|
+
faraday (2.10.0)
|
41
|
+
faraday-net_http (>= 2.0, < 3.2)
|
42
|
+
logger
|
43
|
+
faraday-net_http (3.1.0)
|
44
|
+
net-http
|
45
|
+
ffi (1.17.0)
|
45
46
|
formatador (1.1.0)
|
46
47
|
gem-release (2.2.2)
|
47
48
|
git (1.19.1)
|
@@ -68,18 +69,22 @@ GEM
|
|
68
69
|
immutable-struct (2.4.1)
|
69
70
|
json (2.7.2)
|
70
71
|
language_server-protocol (3.17.0.3)
|
71
|
-
lino (3.
|
72
|
+
lino (3.2.0.pre.9)
|
73
|
+
childprocess (~> 5.0.0)
|
72
74
|
hamster (~> 3.0)
|
73
75
|
open4 (~> 1.3)
|
74
76
|
listen (3.9.0)
|
75
77
|
rb-fsevent (~> 0.10, >= 0.10.3)
|
76
78
|
rb-inotify (~> 0.9, >= 0.9.10)
|
79
|
+
logger (1.6.0)
|
77
80
|
lumberjack (1.2.10)
|
78
81
|
method_source (1.1.0)
|
79
82
|
minitar (0.9)
|
80
|
-
minitest (5.
|
83
|
+
minitest (5.24.1)
|
81
84
|
mutex_m (0.2.0)
|
82
85
|
nenv (0.3.0)
|
86
|
+
net-http (0.4.1)
|
87
|
+
uri
|
83
88
|
notiffany (0.1.3)
|
84
89
|
nenv (~> 0.1)
|
85
90
|
shellany (~> 0.0)
|
@@ -88,14 +93,14 @@ GEM
|
|
88
93
|
faraday (>= 1, < 3)
|
89
94
|
sawyer (~> 0.9)
|
90
95
|
open4 (1.3.4)
|
91
|
-
parallel (1.
|
92
|
-
parser (3.3.
|
96
|
+
parallel (1.25.1)
|
97
|
+
parser (3.3.3.0)
|
93
98
|
ast (~> 2.4.1)
|
94
99
|
racc
|
95
100
|
pry (0.14.2)
|
96
101
|
coderay (~> 1.1)
|
97
102
|
method_source (~> 1.0)
|
98
|
-
public_suffix (
|
103
|
+
public_suffix (6.0.0)
|
99
104
|
racc (1.8.0)
|
100
105
|
rainbow (3.1.1)
|
101
106
|
rake (13.2.1)
|
@@ -139,22 +144,22 @@ GEM
|
|
139
144
|
ffi (~> 1.0)
|
140
145
|
rchardet (1.8.0)
|
141
146
|
regexp_parser (2.9.2)
|
142
|
-
rexml (3.
|
143
|
-
strscan
|
147
|
+
rexml (3.3.1)
|
148
|
+
strscan
|
144
149
|
rspec (3.13.0)
|
145
150
|
rspec-core (~> 3.13.0)
|
146
151
|
rspec-expectations (~> 3.13.0)
|
147
152
|
rspec-mocks (~> 3.13.0)
|
148
153
|
rspec-core (3.13.0)
|
149
154
|
rspec-support (~> 3.13.0)
|
150
|
-
rspec-expectations (3.13.
|
155
|
+
rspec-expectations (3.13.1)
|
151
156
|
diff-lcs (>= 1.2.0, < 2.0)
|
152
157
|
rspec-support (~> 3.13.0)
|
153
158
|
rspec-mocks (3.13.1)
|
154
159
|
diff-lcs (>= 1.2.0, < 2.0)
|
155
160
|
rspec-support (~> 3.13.0)
|
156
161
|
rspec-support (3.13.1)
|
157
|
-
rubocop (1.
|
162
|
+
rubocop (1.64.1)
|
158
163
|
json (~> 2.3)
|
159
164
|
language_server-protocol (>= 3.17.0)
|
160
165
|
parallel (~> 1.10)
|
@@ -167,24 +172,14 @@ GEM
|
|
167
172
|
unicode-display_width (>= 2.4.0, < 3.0)
|
168
173
|
rubocop-ast (1.31.3)
|
169
174
|
parser (>= 3.3.1.0)
|
170
|
-
rubocop-capybara (2.20.0)
|
171
|
-
rubocop (~> 1.41)
|
172
|
-
rubocop-factory_bot (2.25.1)
|
173
|
-
rubocop (~> 1.41)
|
174
175
|
rubocop-rake (0.6.0)
|
175
176
|
rubocop (~> 1.0)
|
176
|
-
rubocop-rspec (
|
177
|
-
rubocop (~> 1.
|
178
|
-
rubocop-capybara (~> 2.17)
|
179
|
-
rubocop-factory_bot (~> 2.22)
|
180
|
-
rubocop-rspec_rails (~> 2.28)
|
181
|
-
rubocop-rspec_rails (2.28.3)
|
182
|
-
rubocop (~> 1.40)
|
177
|
+
rubocop-rspec (3.0.2)
|
178
|
+
rubocop (~> 1.61)
|
183
179
|
ruby-progressbar (1.13.0)
|
184
|
-
ruby-terraform (1.
|
180
|
+
ruby-terraform (1.8.0.pre.8)
|
185
181
|
immutable-struct (~> 2.4)
|
186
|
-
lino (
|
187
|
-
ruby2_keywords (0.0.5)
|
182
|
+
lino (= 3.2.0.pre.9)
|
188
183
|
ruby_git_crypt (0.1.0.pre.4)
|
189
184
|
immutable-struct (~> 2.4)
|
190
185
|
lino (~> 3.0)
|
@@ -207,6 +202,7 @@ GEM
|
|
207
202
|
tzinfo (2.0.6)
|
208
203
|
concurrent-ruby (~> 1.0)
|
209
204
|
unicode-display_width (2.5.0)
|
205
|
+
uri (0.13.0)
|
210
206
|
yard (0.9.36)
|
211
207
|
|
212
208
|
PLATFORMS
|
@@ -13,11 +13,11 @@ module RakeTerraform
|
|
13
13
|
|
14
14
|
attr_reader :delegate
|
15
15
|
|
16
|
-
def initialize(*args, &
|
16
|
+
def initialize(*args, &)
|
17
17
|
@opts = args[0]
|
18
18
|
@delegate =
|
19
19
|
RakeDependencies::TaskSets::All.new(
|
20
|
-
task_set_opts, &
|
20
|
+
task_set_opts, &
|
21
21
|
)
|
22
22
|
end
|
23
23
|
|
@@ -36,26 +36,26 @@ module RakeTerraform
|
|
36
36
|
|
37
37
|
def task_set_opts
|
38
38
|
{
|
39
|
-
namespace
|
40
|
-
dependency
|
41
|
-
version
|
42
|
-
path
|
43
|
-
type
|
39
|
+
namespace:,
|
40
|
+
dependency:,
|
41
|
+
version:,
|
42
|
+
path:,
|
43
|
+
type:,
|
44
44
|
|
45
|
-
platform_os_names
|
46
|
-
platform_cpu_names
|
45
|
+
platform_os_names:,
|
46
|
+
platform_cpu_names:,
|
47
47
|
|
48
|
-
uri_template
|
49
|
-
file_name_template
|
48
|
+
uri_template:,
|
49
|
+
file_name_template:,
|
50
50
|
|
51
|
-
source_binary_name_template
|
52
|
-
target_binary_name_template
|
51
|
+
source_binary_name_template:,
|
52
|
+
target_binary_name_template:,
|
53
53
|
|
54
|
-
installation_directory
|
54
|
+
installation_directory:,
|
55
55
|
|
56
|
-
logger
|
56
|
+
logger:,
|
57
57
|
|
58
|
-
needs_fetch:
|
58
|
+
needs_fetch:
|
59
59
|
}
|
60
60
|
end
|
61
61
|
|
@@ -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
|
@@ -13,11 +14,11 @@ module RakeTerraform
|
|
13
14
|
|
14
15
|
attr_reader :delegate
|
15
16
|
|
16
|
-
def initialize(*args, &
|
17
|
+
def initialize(*args, &)
|
17
18
|
@opts = args[0]
|
18
19
|
@delegate =
|
19
20
|
RakeDependencies::TaskSets::All.new(
|
20
|
-
task_set_opts, &
|
21
|
+
task_set_opts, &
|
21
22
|
)
|
22
23
|
end
|
23
24
|
|
@@ -36,23 +37,23 @@ module RakeTerraform
|
|
36
37
|
|
37
38
|
def task_set_opts
|
38
39
|
{
|
39
|
-
namespace
|
40
|
-
dependency
|
41
|
-
version
|
42
|
-
path
|
43
|
-
type
|
40
|
+
namespace:,
|
41
|
+
dependency:,
|
42
|
+
version:,
|
43
|
+
path:,
|
44
|
+
type:,
|
44
45
|
|
45
|
-
platform_os_names
|
46
|
-
platform_cpu_names
|
46
|
+
platform_os_names:,
|
47
|
+
platform_cpu_names:,
|
47
48
|
|
48
|
-
uri_template
|
49
|
-
file_name_template
|
49
|
+
uri_template:,
|
50
|
+
file_name_template:,
|
50
51
|
|
51
|
-
binary_directory
|
52
|
+
binary_directory:,
|
52
53
|
|
53
|
-
logger
|
54
|
+
logger:,
|
54
55
|
|
55
|
-
needs_fetch:
|
56
|
+
needs_fetch:
|
56
57
|
}
|
57
58
|
end
|
58
59
|
|
@@ -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/lib/rake_terraform.rb
CHANGED
@@ -8,8 +8,8 @@ require 'rake_terraform/tasks'
|
|
8
8
|
require 'rake_terraform/task_sets'
|
9
9
|
|
10
10
|
module RakeTerraform
|
11
|
-
def self.define_command_tasks(opts = {}, &
|
12
|
-
RakeTerraform::TaskSets::All.define(opts, &
|
11
|
+
def self.define_command_tasks(opts = {}, &)
|
12
|
+
RakeTerraform::TaskSets::All.define(opts, &)
|
13
13
|
end
|
14
14
|
|
15
15
|
def self.define_installation_tasks(opts = {})
|
data/rake_terraform.gemspec
CHANGED
@@ -35,12 +35,12 @@ Gem::Specification.new do |spec|
|
|
35
35
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
36
36
|
spec.require_paths = ['lib']
|
37
37
|
|
38
|
-
spec.required_ruby_version = '>=
|
38
|
+
spec.required_ruby_version = '>= 3.1'
|
39
39
|
|
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', '
|
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-
|
11
|
+
date: 2024-07-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: colored2
|
@@ -56,16 +56,16 @@ dependencies:
|
|
56
56
|
name: ruby-terraform
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - '='
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
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:
|
68
|
+
version: 1.8.0.pre.8
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: activesupport
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -374,14 +374,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
374
374
|
requirements:
|
375
375
|
- - ">="
|
376
376
|
- !ruby/object:Gem::Version
|
377
|
-
version: '
|
377
|
+
version: '3.1'
|
378
378
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
379
379
|
requirements:
|
380
380
|
- - ">"
|
381
381
|
- !ruby/object:Gem::Version
|
382
382
|
version: 1.3.1
|
383
383
|
requirements: []
|
384
|
-
rubygems_version: 3.
|
384
|
+
rubygems_version: 3.3.7
|
385
385
|
signing_key:
|
386
386
|
specification_version: 4
|
387
387
|
summary: Rake tasks for running terraform.
|