idlc-sdk-pfm 1.0.10 → 1.0.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/idlc-sdk-pfm/command/base.rb +11 -1
- data/lib/idlc-sdk-pfm/version.rb +1 -1
- 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: 602f775e11c0fc20bd2f7b36b445fd3b432d03c7631a8eb51289ca2c5f928e2d
|
4
|
+
data.tar.gz: 6aba52457ed4b9d799cb14fc50bb7d2cc54025c5e7f8eab49d74755447cb3971
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d9729ef3fbb6463f5b4b2c62932e9e3a9bef269272182174166bd20e1234857e9815fe64813c1dfac56bc829da83fd2dfdcbf8b51706f47237de0b44cc6140f7
|
7
|
+
data.tar.gz: 41c9308bf77f4f728c07f2402514044568f626f25ccbe3b2202882c08cd0ce24418ebf200e46f9c767feed3843fd10ca7003b47733ce3af6598ac86a001e2660
|
@@ -171,12 +171,22 @@ module Pfm
|
|
171
171
|
env_metadata = JSON.parse(open(@config[:config_file]).read)
|
172
172
|
['account', 'environment', 'ec2', 'application'].each do |section|
|
173
173
|
env_metadata[section].each do |key, value|
|
174
|
-
|
174
|
+
# skip dups
|
175
|
+
next unless vars_file[key].nil?
|
176
|
+
|
177
|
+
# replace null with empty string
|
178
|
+
value = '' if value.nil?
|
179
|
+
|
180
|
+
# skip lists and maps
|
175
181
|
next unless (value.instance_of? String)
|
182
|
+
|
183
|
+
# add to vars file
|
176
184
|
vars_file[key] = <<~EOH
|
177
185
|
variable "#{key}" {}
|
178
186
|
|
179
187
|
EOH
|
188
|
+
|
189
|
+
# load value into envrionment
|
180
190
|
Idlc::Deploy::Config.add_deployment_var(key, value)
|
181
191
|
end
|
182
192
|
end
|
data/lib/idlc-sdk-pfm/version.rb
CHANGED