rake-terraform-wrapper 0.3.0 → 0.3.1

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: 7397085e32a0cf518d65d3e6dfbe28a4ffde5cbacecac79bea4ae24b586f740c
4
- data.tar.gz: 90474808154b39372a61dd0b691617987ca6a4ee3a3201ad2909e97d45533307
3
+ metadata.gz: 47dd7d0777605fd276c6f3756d32e12dd2287a02e82ddbde225be8b681ab85ed
4
+ data.tar.gz: 8c148cbb511dab03353b8e53ded260df1648ea2001067b0a7806e497a5ccf326
5
5
  SHA512:
6
- metadata.gz: 44512e7239fbc0743d18378c6308bee6edb43fbf75d203383af1092dffbae5c393506ceacf324d5a12415eeae66b1b78d3515d858d1b6a82c9d0466210a08f81
7
- data.tar.gz: 73463bcd33110d0a2750a1c2c588119cb93704793d57c08e0c2bc3079634b048e6f339677ed7750ca656b3976ef002e94b1bbf0394c47e0314dbccc71d9b9c6a
6
+ metadata.gz: 213c80d5eecca76180c3b657d62da22cb2e6b461dc2fc8d81ed30437df4c2bdf488ff351167d5efbba108549b189a29ce08a9ec11c6809ca9dc8fbeae5110290
7
+ data.tar.gz: cdabc17af7030ba7ecfd95978b7adb50562d3671c7c72d3804d94ca567cb482a27a18ab180c06f3da89c14b9aebdfbe635aafc668bee3f6e5f3ba389c2d9871e
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rake-terraform-wrapper (0.3.0)
4
+ rake-terraform-wrapper (0.3.1)
5
5
  mixlib-shellout (~> 3.1)
6
6
  os (~> 1.1)
7
7
  rake (~> 13.0)
@@ -6,18 +6,26 @@ module Ruby
6
6
  attr_accessor :binary
7
7
 
8
8
  def initialize(opts = {})
9
- @terraform_version = opts[:terraform_version] || Ruby::Terraform::TERRAFORM_VERSION
10
- @download_path = opts[:download_path] || File.expand_path("~/.terraform-bin/#{terraform_version}")
9
+ @terraform_version = opts[:terraform_version]
10
+ @download_path = opts[:download_path]
11
11
  @binary = opts[:terraform_binary]
12
12
  end
13
13
 
14
+ def terraform_version
15
+ @terraform_version ||= Ruby::Terraform::TERRAFORM_VERSION
16
+ end
17
+
18
+ def download_path
19
+ @download_path ||= File.expand_path("~/.terraform-bin/#{terraform_version}")
20
+ end
21
+
14
22
  def binary
15
23
  if @binary
16
24
  @binary
17
25
  elsif OS.windows?
18
- "#{@download_path}/terraform.exe"
26
+ @binary ||= "#{@download_path}/terraform.exe"
19
27
  else
20
- "#{@download_path}/terraform"
28
+ @binary ||= "#{@download_path}/terraform"
21
29
  end
22
30
  end
23
31
  end
@@ -1,6 +1,6 @@
1
1
  module Ruby
2
2
  module Terraform
3
- VERSION = "0.3.0".freeze
3
+ VERSION = "0.3.1".freeze
4
4
  TERRAFORM_VERSION = '0.13.3'.freeze
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rake-terraform-wrapper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ruby Terraform