terragov 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/terragov/buildpaths.rb +23 -11
- data/lib/terragov/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 81263feff3c924e10abd2ee9970eb7f0b8c38a8b
|
4
|
+
data.tar.gz: caa6a769b206bd259ed0cb6ad9402226ee140f53
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cc20df3bc78578f2f72661ee803affded61c966394262753c7d2026c78cc0e9119287b6fb66f7d26de1f80b6a10c5ace7081fba0c8e3a082e8c7121313362367
|
7
|
+
data.tar.gz: 7d4cbadd5f067d840dc14de3a92305735346fefb13aad4ae7980cc3549ed613be0f85298097c12b6b5ef81149070bbd260cdaaed503914c0451eb4bd169c937f
|
data/CHANGELOG.md
CHANGED
data/lib/terragov/buildpaths.rb
CHANGED
@@ -11,17 +11,21 @@ module Terragov
|
|
11
11
|
extra = options['extra']
|
12
12
|
|
13
13
|
# Construct variables
|
14
|
-
terraform_dir
|
15
|
-
project_dir
|
16
|
-
backend_file
|
17
|
-
common_data_dir
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
14
|
+
terraform_dir = File.join(repo_dir, 'terraform')
|
15
|
+
project_dir = File.join(terraform_dir, "projects/#{project}")
|
16
|
+
backend_file = File.join(project_dir, "#{environment}.#{stack}.backend")
|
17
|
+
common_data_dir = File.join(data_dir, "common/#{environment}")
|
18
|
+
all_env_common_data = File.join(data_dir, 'common', 'common.tfvars')
|
19
|
+
all_env_stack_common_data = File.join(data_dir, 'common', "#{stack}.tfvars")
|
20
|
+
common_data = File.join(common_data_dir, 'common.tfvars')
|
21
|
+
stack_common_data = File.join(common_data_dir, "#{stack}.tfvars")
|
22
|
+
project_data_dir = File.join(data_dir, "#{project}/#{environment}")
|
23
|
+
all_env_common_project_data = File.join(data_dir, project, 'common.tfvars')
|
24
|
+
all_env_stack_project_data = File.join(data_dir, project, "#{stack}.tfvars")
|
25
|
+
common_project_data = File.join(project_data_dir, 'common.tfvars')
|
26
|
+
secret_common_project_data = File.join(project_data_dir, 'common.secret.tfvars')
|
27
|
+
stack_project_data = File.join(project_data_dir, "#{stack}.tfvars")
|
28
|
+
secret_project_data = File.join(project_data_dir, "#{stack}.secret.tfvars")
|
25
29
|
|
26
30
|
# Return hash to enable testing
|
27
31
|
data_paths = {
|
@@ -29,9 +33,13 @@ module Terragov
|
|
29
33
|
project_dir: project_dir,
|
30
34
|
backend_file: backend_file,
|
31
35
|
common_data_dir: common_data_dir,
|
36
|
+
all_env_common_data: all_env_common_data,
|
37
|
+
all_env_stack_common_data: all_env_stack_common_data,
|
32
38
|
common_data: common_data,
|
33
39
|
stack_common_data: stack_common_data,
|
34
40
|
project_data_dir: project_data_dir,
|
41
|
+
all_env_common_project_data: all_env_common_project_data,
|
42
|
+
all_env_stack_project_data: all_env_stack_project_data,
|
35
43
|
common_project_data: common_project_data,
|
36
44
|
secret_common_project_data: secret_common_project_data,
|
37
45
|
stack_project_data: stack_project_data,
|
@@ -52,8 +60,12 @@ module Terragov
|
|
52
60
|
# order to Terraform as that creates the hierarchy for overrides
|
53
61
|
base = self.base(options)
|
54
62
|
paths = [
|
63
|
+
base[:all_env_common_data],
|
64
|
+
base[:all_env_stack_common_data],
|
55
65
|
base[:common_data],
|
56
66
|
base[:stack_common_data],
|
67
|
+
base[:all_env_common_project_data],
|
68
|
+
base[:all_env_stack_project_data],
|
57
69
|
base[:common_project_data],
|
58
70
|
base[:secret_common_project_data],
|
59
71
|
base[:stack_project_data],
|
data/lib/terragov/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: terragov
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Laura Martin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-01-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: commander
|