pcf_blue_green 0.1.9 → 0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pcf_blue_green.rb +2 -1
- data/lib/pcf_blue_green/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2c26974864a9203633d308ef8c1683706ad3f66a
|
4
|
+
data.tar.gz: 22478f9d5690f1e22fe68975f2b0f01611a195b8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0edda7a36592d455476bbfe3866eec30853ec1d524d7c5567774cb4d811d91b5ab65c7cba49de8d65fc291ff4003eead21f480e458e24e9e7e685c999576dc84
|
7
|
+
data.tar.gz: dfac44b727db5ca1b55b79e5fb3a517111857b3afe2758d837b86bf6143a331defd49ac663264b0948716d5a4dfae19cd8a85da3e78973ba39b441cdd87a83f0
|
data/lib/pcf_blue_green.rb
CHANGED
@@ -36,7 +36,8 @@ module PcfBlueGreen
|
|
36
36
|
tmp_stdout['resources'].each do |resource|
|
37
37
|
tmp_json = resource if resource['entity']['name'] == app
|
38
38
|
end
|
39
|
-
environments = tmp_json['entity']['environment_json']
|
39
|
+
environments = tmp_json['entity']['environment_json'].map { |k,v| [k, "'#{v}'"]}.to_h
|
40
|
+
|
40
41
|
open(manifest_file_path, 'a') do |f|
|
41
42
|
environments.each do |env|
|
42
43
|
f.puts "\s\s\s\s#{env.join(': ')}"
|