rake-terraform 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ODNkNmUyNTk3ZWRiZDY4NTFjMjJmN2QwYWFjNTk3ODJlMmE3Y2I0YQ==
4
+ M2I1MmU3MTY0MTcyYTZkNjljMzYxZWJkY2M3YzVlOGMwODA0YTU5YQ==
5
5
  data.tar.gz: !binary |-
6
- ZTg2NTNhODcyZDU2M2JjMGJhMDllYTMxMGJiNjQ4NTk3NTJkOWVjNA==
6
+ NzZlYjVmM2U4MjQ3OTg2Njk1NWJkMzA3MzlhOGU3OGJjMWM1OTQ0Zg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- OGFhNTBiNTgwYmIzODRhZjhmZWU2YTE0NzdjZDFiNTA3YjgxNTlhMDNlMWQ1
10
- OGM3NjQ4MDg1OWUxMjEwZWVkNTNjZjc4ODkzYWY0ZTI2YzE3MzEwY2Q4MGUw
11
- ZTMwMTBkNjA0ZjY5NGVjYjliYjY4ZWJjY2Y2NzdlYjY1MjhlYmY=
9
+ MzcwMzQyOGVjMDM0ZjdhNWQ2OThjNzgwMDQ3MzVhYjY5NDQwZWQ0Mjg4ZGI3
10
+ OTljNjgyM2ZmMTFiOWQxNjZjOWEwNDM3M2UwMzIzNDNmZmNmNmNjNzljMDk0
11
+ NjRiZjRjMjJkYWYzNTVjOGMzYzk1NGQ4ODBiY2I4ODkwYjdkNjI=
12
12
  data.tar.gz: !binary |-
13
- NjVkNTgzZjE4MjVjNDRlNTBkMjJlNjg4ODc1MDE4ODg5NzQ2NGYzYmVhYzRi
14
- MDYwZDVkNDY3Njc3YTZmYTkwZGYxZjM1ZTg5M2M2NGFiMDI0YzI4MWE3ZmEx
15
- MmRhMTA3ODhjOWUzYzg3YjI5YWUwZTYzYjYzNDJlNTZlOWY1OGQ=
13
+ YTFkMDkxZTc1ZWU4ZDNjOTk1NTg4Mjc1ZjE0OGFjNTdjNDBhMDg3ZTliNmQ5
14
+ OTc2NWFjM2Q5MDJmYzMxMzcyMDRhMjdlNGM2Y2ZkZjk0MGE0YjE4OTI4Y2E2
15
+ OTVjZTBmMDYwYjgzODNmZjk5YjhiYzk0ZGUxZThjYzBiMWFjMjU=
@@ -4,7 +4,8 @@ require 'pathname'
4
4
  namespace :terraform do
5
5
  env_glob = ENV['TERRAFORM_ENVIRONMENT_GLOB'] || 'terraform/**/*.tf'
6
6
  output_base = ENV['TERRAFORM_OUTPUT_BASE'] || 'output/terraform'
7
- credential_file = ENV['TERRAFORM_CREDENTIAL_FILE'] || '~/.aws/credentials'
7
+ credential_file = ENV['TERRAFORM_CREDENTIAL_FILE']
8
+ credential_file ||= "#{Dir.home}/.aws/credentials"
8
9
  aws_project = ENV['TERRAFORM_AWS_PROJECT'] || 'default'
9
10
 
10
11
  # Set to string 'false' instead of bool so users can more-easily override
@@ -19,10 +20,10 @@ namespace :terraform do
19
20
 
20
21
  environments.each do |env|
21
22
  relative_to_current = Pathname.new(env)
22
- env_glob_root = Pathname.new(env_root)
23
+ env_glob_root = Pathname.new(env_root)
23
24
  abs_relative_path = relative_to_current.relative_path_from(env_glob_root)
24
25
 
25
- short_name = abs_relative_path.to_s.gsub('/', '_')
26
+ short_name = abs_relative_path.to_s.tr('/', '_')
26
27
  plan_path = File.expand_path File.join(output_base, "#{short_name}.tf")
27
28
 
28
29
  desc "Plan migration of #{short_name}" if hide_tasks == 'false'
@@ -1,4 +1,4 @@
1
1
  # Version of the gem
2
2
  module RakeTerraform
3
- VERSION = '0.0.7'
3
+ VERSION = '0.0.8'
4
4
  end
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: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Norm MacLennan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-14 00:00:00.000000000 Z
11
+ date: 2015-11-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler