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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ee44660b54c99fcc0430739f91d7c983be8ae26dc5f7dd6bd240a8faf1419e94
4
- data.tar.gz: 3321c7016cde53892060b64e05cc26a55e14a6cdfd66584bb38297fbc059fe57
3
+ metadata.gz: 9cdd09685fbb59a3fba9da1b7b1e0b1f84bdbaec975dccd6eb3148526ab7ae05
4
+ data.tar.gz: 631163e0ae642ae6328eff584a7be1eafb1fbf8d1f0de7fab19e52d45832dc15
5
5
  SHA512:
6
- metadata.gz: efe2adfa660b4e6e05760301eefc5fe382906bf76d3f38e6aca879eb9772ccd6a5f1f955904fd936862fe460ae8b77c8f920ed03ffde71806a2e94aa9d98d9bc
7
- data.tar.gz: a131676d34b70fbaa94a0e02e317ba26f64f32f9d5a309494f7959ccb753d588463cc5b6a5b57299dafa7360d874ed27fd0210c1ccf4759102f13b29d73e69be
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 = []
@@ -1,5 +1,5 @@
1
1
  module Proteus
2
- VERSION = "0.3.6"
2
+ VERSION = "0.3.7"
3
3
  end
4
4
 
5
5
  if $0 == __FILE__
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.6
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-03-26 00:00:00.000000000 Z
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.3
217
+ rubygems_version: 3.2.15
218
218
  signing_key:
219
219
  specification_version: 4
220
220
  summary: Proteus is a Terraform wrapper application.