dh-proteus 0.3.6 → 0.3.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/proteus/commands/render.rb +3 -0
- data/lib/proteus/modules/manager.rb +3 -1
- data/lib/proteus/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9cdd09685fbb59a3fba9da1b7b1e0b1f84bdbaec975dccd6eb3148526ab7ae05
|
4
|
+
data.tar.gz: 631163e0ae642ae6328eff584a7be1eafb1fbf8d1f0de7fab19e52d45832dc15
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c62a0a514498abeef4f19cf913920f98802726ba83694bebc8dd03ece8cbfb4a70a11b2304b44ba4bfae2e95049e58de8c36fb54f37cd0cfe753e2d6681310ff
|
7
|
+
data.tar.gz: f010f09c3129f436ae3bd728020ee395c3fdbd22c42ef7dec4dc8371f7c6f7a7b864bdedb0fe19b2b2e24c797d11cb5ab8667c0ef3634dd14d0a18094ca3c7cc
|
@@ -10,6 +10,7 @@ module Proteus
|
|
10
10
|
long_desc <<-LONGDESC
|
11
11
|
Renders the module templates without running Terraform
|
12
12
|
LONGDESC
|
13
|
+
option :init, type: :boolean, default: false
|
13
14
|
def render
|
14
15
|
render_backend
|
15
16
|
module_manager = Proteus::Modules::Manager.new(context: context, environment: environment)
|
@@ -26,6 +27,8 @@ module Proteus
|
|
26
27
|
suppress: true
|
27
28
|
)
|
28
29
|
|
30
|
+
init(verbose: parent_options[:verbose]) if options[:init]
|
31
|
+
|
29
32
|
say "Formatted files:", :green
|
30
33
|
say fmt_output, :green
|
31
34
|
end
|
@@ -35,7 +35,9 @@ module Proteus
|
|
35
35
|
if tfvars_content.empty?
|
36
36
|
terraform_variables = []
|
37
37
|
else
|
38
|
-
terraform_variables = JSON.parse(parse_tfvars(tfvars: tfvars_content))
|
38
|
+
terraform_variables = JSON.parse(parse_tfvars(tfvars: tfvars_content)).merge({
|
39
|
+
'proteus_environment' => @environment
|
40
|
+
})
|
39
41
|
end
|
40
42
|
|
41
43
|
@modules = []
|
data/lib/proteus/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dh-proteus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Simon Albrecht
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-06-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -214,7 +214,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
214
214
|
- !ruby/object:Gem::Version
|
215
215
|
version: '0'
|
216
216
|
requirements: []
|
217
|
-
rubygems_version: 3.2.
|
217
|
+
rubygems_version: 3.2.15
|
218
218
|
signing_key:
|
219
219
|
specification_version: 4
|
220
220
|
summary: Proteus is a Terraform wrapper application.
|