iapi-idlc-sdk-pfm 1.0.17 → 1.0.18

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: c0337e0cf970aef124b946cdf412e9aa5e8e639484da4d08d02cafe7716ae895
4
- data.tar.gz: cac3276955ec070712e4cbe70b3ab398a3d4d77e95e514c258a4ed0269cc2eb5
3
+ metadata.gz: 02b07d40dc69b2bf36a0c8708bdf91683c9e89992229ecdd55b29837741f0d80
4
+ data.tar.gz: c9f9143e6ffc323c7a0353b8d300dee681d8e33074c9a4cf822941593561e3e7
5
5
  SHA512:
6
- metadata.gz: 9c0883c1da9c4195cd3f9810393216585cde21e09e52c8dc35a01b5f28c3d467fe94adacfd7ce636af5f5f40479f70572ac2623fe763f54e5ed803f417219be0
7
- data.tar.gz: 65504eb0b0f29e8a2d5f7a93544fcad3bdd038ab78bace3285ed8d1d00be00a5dd8a40d55480b68055d87855dd6923e235a620aeb2525727f3c749b7dc99c095
6
+ metadata.gz: '083b8e87d34376cc679047624985c5527e3f32d67e992d3bf3c15e12db7cd20135408106f721e967b48cc9945596b9b5c4adcfeb0f83ea5933ec5f93e05cc7cf'
7
+ data.tar.gz: 1220c987e218f151dd26c60241f9b869900d8b5d3780ea6c91cc66ffbba49181e147e647ce0b2b0796abdfa03ae44c6ce8f1b81c8c53eb7ee26ceed04b999772
@@ -33,6 +33,12 @@ module Pfm
33
33
  boolean: true,
34
34
  default: false
35
35
 
36
+ option :skip_tfvar_file,
37
+ long: '--skip-tfvar-file',
38
+ description: 'Skip TF Var File',
39
+ boolean: true,
40
+ default: false
41
+
36
42
  def initialize
37
43
  super
38
44
 
@@ -194,10 +200,12 @@ module Pfm
194
200
 
195
201
  # add to vars file and record key for dups
196
202
  keys[key] = 'parsed'
197
- vars_file += <<~EOH
198
- variable "#{key}" {}
203
+ unless @config[:skip_tfvar_file]
204
+ vars_file += <<~EOH
205
+ variable "#{key}" {}
199
206
 
200
- EOH
207
+ EOH
208
+ end
201
209
 
202
210
  # load value into envrionment
203
211
  Idlc::Deploy::Config.add_deployment_var(key, value)
@@ -205,7 +213,9 @@ module Pfm
205
213
  end
206
214
 
207
215
  # write vars file
208
- File.open("#{config[:working_dir]}/#{env_metadata['environment_key']}-tfvars.tf", 'w') { |file| file.write(vars_file) }
216
+ unless @config[:skip_tfvar_file]
217
+ File.open("#{config[:working_dir]}/#{env_metadata['environment_key']}-tfvars.tf", 'w') { |file| file.write(vars_file) }
218
+ end
209
219
 
210
220
  # Pass some extra vars for Terraform
211
221
  Idlc::Deploy::Config.add_deployment_var('aws_region', SETTINGS['AWS_REGION'])
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: iapi-idlc-sdk-pfm
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.17
4
+ version: 1.0.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Cazell