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 +8 -8
- data/lib/rake-terraform/default_tasks.rb +4 -3
- data/lib/rake-terraform/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
M2I1MmU3MTY0MTcyYTZkNjljMzYxZWJkY2M3YzVlOGMwODA0YTU5YQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NzZlYjVmM2U4MjQ3OTg2Njk1NWJkMzA3MzlhOGU3OGJjMWM1OTQ0Zg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MzcwMzQyOGVjMDM0ZjdhNWQ2OThjNzgwMDQ3MzVhYjY5NDQwZWQ0Mjg4ZGI3
|
10
|
+
OTljNjgyM2ZmMTFiOWQxNjZjOWEwNDM3M2UwMzIzNDNmZmNmNmNjNzljMDk0
|
11
|
+
NjRiZjRjMjJkYWYzNTVjOGMzYzk1NGQ4ODBiY2I4ODkwYjdkNjI=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
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']
|
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
|
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.
|
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'
|
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.
|
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-
|
11
|
+
date: 2015-11-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|