rake_terraform 0.21.1.pre8 → 0.21.1.pre9
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 +10 -13
- 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: 06cff28d37ba19425d6606fbf15dd1dddbfdb151d348171e8e7f7dc52764ff41
|
4
|
+
data.tar.gz: 9b530313e0b96b561d72a2fbdb202371f57d9d84c49ba2f87119330583afb8f6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d20b0148e74d03282ee5823042db6166994d64f28f59609b9428f09d135171bf01bac9045e2091b9e8d028394f7a8a58e3c267f8775f52ad4b13d7cf51db9269
|
7
|
+
data.tar.gz: bd316eca08c1fb33acb1ea4227bed2f181d217a7608aa89c0afdb84bc6ed7bdcb09d5ec1c1cee4aa240396c7aa94044d5612e62d19e5ec44f8c80f38efc52f43
|
data/Gemfile.lock
CHANGED
data/lib/rake_terraform.rb
CHANGED
@@ -76,27 +76,24 @@ module RakeTerraform
|
|
76
76
|
end
|
77
77
|
end
|
78
78
|
providers.each do |provider|
|
79
|
-
|
80
|
-
version = provider[:version]
|
81
|
-
path = provider[:path]
|
82
|
-
repository = provider[:repository]
|
83
|
-
dependency = "terraform-provider-#{name}"
|
79
|
+
dependency = "terraform-provider-#{provider[:name]}"
|
84
80
|
|
85
81
|
Rake.application.in_namespace namespace do
|
86
82
|
Rake.application.in_namespace :providers do
|
87
83
|
RakeDependencies::Tasks::All.new do |t|
|
88
|
-
t.namespace = name
|
84
|
+
t.namespace = provider[:name]
|
89
85
|
t.dependency = dependency
|
90
|
-
t.version = version
|
91
|
-
t.path = path
|
86
|
+
t.version = provider[:version]
|
87
|
+
t.path = provider[:path]
|
92
88
|
t.type = :tar_gz
|
93
89
|
|
94
90
|
t.os_ids = {mac: 'darwin', linux: 'linux'}
|
95
91
|
|
96
92
|
t.uri_template =
|
97
|
-
"https://github.com/#{repository}/releases/
|
98
|
-
"
|
99
|
-
"<%= @
|
93
|
+
"https://github.com/#{provider[:repository]}/releases/" +
|
94
|
+
"download/<%= @version %>/" +
|
95
|
+
"#{dependency}_v<%= @version %>_<%= @os_id %>" +
|
96
|
+
"_amd64<%= @ext %>"
|
100
97
|
t.file_name_template =
|
101
98
|
"#{dependency}_v<%= @version %>_<%= @os_id %>_amd64<%= @ext %>"
|
102
99
|
|
@@ -112,8 +109,8 @@ module RakeTerraform
|
|
112
109
|
"#{dependency}_v#{parameters[:version]}")
|
113
110
|
|
114
111
|
logger.info(
|
115
|
-
"Terraform provider binary for: #{name}
|
116
|
-
provider_binary)
|
112
|
+
"Terraform provider binary for: #{provider[:name]} " +
|
113
|
+
"should be at: #{provider_binary}")
|
117
114
|
|
118
115
|
binary_exists = File.exists?(provider_binary)
|
119
116
|
|