rake_terraform 0.21.1.pre6 → 0.21.1.pre7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/rake_terraform/version.rb +1 -1
- data/lib/rake_terraform.rb +6 -6
- 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: e32d387706566880c3315d12ddba26ee3f2cb1f1c42b60a4efb77d9a3d00b9be
|
4
|
+
data.tar.gz: 34086ac6a523e2e518020b497ed21d3c2f22ecd7f65c89965a9693dc73185b1e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3abea298d7b91eb31336eeb0ee33141fe936d97e398b196aa1dc1d68a8fb34d5d065c8e2e24d12d1e6a0d68296306ed3271062385bac0969b16ead92693a777a
|
7
|
+
data.tar.gz: 4ca87fb18e138043035e5ad1430b903eee9a4c960261e34d53ae44893863936d9437b540dfbd56f58f8c4c76c2b4ffa9f8835b23f8cbd2dbfeef8af836440e76
|
data/Gemfile.lock
CHANGED
data/lib/rake_terraform.rb
CHANGED
@@ -46,26 +46,26 @@ module RakeTerraform
|
|
46
46
|
'terraform')
|
47
47
|
version_string = StringIO.new
|
48
48
|
|
49
|
-
logger.
|
49
|
+
logger.info("Terraform binary should be at: #{terraform_binary}")
|
50
50
|
|
51
51
|
if File.exist?(terraform_binary)
|
52
52
|
command_line = Lino::CommandLineBuilder.for_command(terraform_binary)
|
53
53
|
.with_flag('-version')
|
54
54
|
.build
|
55
55
|
|
56
|
-
logger.
|
56
|
+
logger.info(
|
57
57
|
'Fetching terraform version information using command: ' +
|
58
58
|
"#{command_line}")
|
59
59
|
|
60
60
|
command_line.execute(stdout: version_string)
|
61
61
|
|
62
|
-
logger.
|
62
|
+
logger.info(
|
63
63
|
"Terraform version information is: \n#{version_string.string}")
|
64
64
|
|
65
65
|
version_line = version_string.string.lines.first
|
66
66
|
version_is_correct = version_line =~ /#{version}/
|
67
67
|
|
68
|
-
logger.
|
68
|
+
logger.debug(
|
69
69
|
"Version: '#{version}' is in version line: '#{version_line}'?: " +
|
70
70
|
"#{version_is_correct}")
|
71
71
|
|
@@ -111,13 +111,13 @@ module RakeTerraform
|
|
111
111
|
parameters[:binary_directory],
|
112
112
|
"#{dependency}_v#{parameters[:version]}")
|
113
113
|
|
114
|
-
logger.
|
114
|
+
logger.info(
|
115
115
|
"Terraform provider binary for: #{name} should be at: " +
|
116
116
|
terraform_binary)
|
117
117
|
|
118
118
|
binary_exists = File.exists?(provider_binary)
|
119
119
|
|
120
|
-
logger.
|
120
|
+
logger.debug("Provider file exists?: #{binary_exists}")
|
121
121
|
|
122
122
|
!binary_exists
|
123
123
|
end
|