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 +4 -4
- data/lib/iapi-idlc-sdk-pfm/command/base.rb +14 -4
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 02b07d40dc69b2bf36a0c8708bdf91683c9e89992229ecdd55b29837741f0d80
|
4
|
+
data.tar.gz: c9f9143e6ffc323c7a0353b8d300dee681d8e33074c9a4cf822941593561e3e7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
198
|
-
|
203
|
+
unless @config[:skip_tfvar_file]
|
204
|
+
vars_file += <<~EOH
|
205
|
+
variable "#{key}" {}
|
199
206
|
|
200
|
-
|
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
|
-
|
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'])
|