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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 70e7e8596b01716c517221d46d41f5a0b915f1720ced9552507352892efd7334
4
- data.tar.gz: 2e9aa30fcdb486e81b7fd70d61d416c54b9a4fa62a8c211d317e6189e08ab86a
3
+ metadata.gz: 06cff28d37ba19425d6606fbf15dd1dddbfdb151d348171e8e7f7dc52764ff41
4
+ data.tar.gz: 9b530313e0b96b561d72a2fbdb202371f57d9d84c49ba2f87119330583afb8f6
5
5
  SHA512:
6
- metadata.gz: c9ae8ea6cfbd1f1c3826c81c052f1206df053f6fd6745dffcbd7ace36c1724faf882d2ba45462c2f6d2f1c91300deb800bd7b60bcd2a085f2b06dbcbc4728d54
7
- data.tar.gz: 2313c80a14433bdc0dab5341bf3a67ac86634d3b5b1d2cadff78932ed684c48b5d169330a6bc1299db7785555f115c465814e297977b6c77eeba33a032fda728
6
+ metadata.gz: d20b0148e74d03282ee5823042db6166994d64f28f59609b9428f09d135171bf01bac9045e2091b9e8d028394f7a8a58e3c267f8775f52ad4b13d7cf51db9269
7
+ data.tar.gz: bd316eca08c1fb33acb1ea4227bed2f181d217a7608aa89c0afdb84bc6ed7bdcb09d5ec1c1cee4aa240396c7aa94044d5612e62d19e5ec44f8c80f38efc52f43
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rake_terraform (0.21.1.pre8)
4
+ rake_terraform (0.21.1.pre9)
5
5
  colored2 (~> 3.1)
6
6
  rake_dependencies (~> 0.18)
7
7
  ruby-terraform (>= 0.11.2)
@@ -1,3 +1,3 @@
1
1
  module RakeTerraform
2
- VERSION = "0.21.1.pre8"
2
+ VERSION = "0.21.1.pre9"
3
3
  end
@@ -76,27 +76,24 @@ module RakeTerraform
76
76
  end
77
77
  end
78
78
  providers.each do |provider|
79
- name = provider[:name]
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/download/" +
98
- "<%= @version %>/#{dependency}_v<%= @version %>_" +
99
- "<%= @os_id %>_amd64<%= @ext %>"
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} should be at: " +
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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rake_terraform
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.21.1.pre8
4
+ version: 0.21.1.pre9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Toby Clemson