pcf_blue_green 0.42 → 0.43
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 +3 -0
- 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: 953e9cbb8d2784b95052b80b9d9e32d514a40760
|
4
|
+
data.tar.gz: e8876fc8b3c065fff34dc97d9a529fea1b2bd9f1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 715e2d0d7fc36adb87f0711d4d89ab24e9290f3edb9655807f48eb657061fefb05e112ef89a6011aa6e905bdcbf7392f92a7e74dbd26e95d95e8b8c8cbed5928
|
7
|
+
data.tar.gz: bc242e2fb0167a99a0a00f6483c5232290386b446af91935c05ecd2ed71514e82492601073e82d3dd2d09415ce9ec42ee72bbf1784b3b392f459c640d3c5c6ba
|
data/lib/pcf_blue_green.rb
CHANGED
@@ -66,9 +66,12 @@ module PcfBlueGreen
|
|
66
66
|
puts "green is #{ENV['green']}"
|
67
67
|
mapped_routes = []
|
68
68
|
if entity = entity_for(ENV['cf_app'])
|
69
|
+
puts routes_stdout(entity)['resources']
|
69
70
|
routes_stdout(entity)['resources'].each do |resource|
|
70
71
|
domain_url = resource['entity']['domain_url']
|
71
72
|
domain = domain_for(domain_url)
|
73
|
+
puts "path: #{resource['entity']['path']}"
|
74
|
+
puts "is empty?: resource['entity']['path'].empty?"
|
72
75
|
if resource['entity']['path'].empty?
|
73
76
|
cmd = "#{map_route_command} #{ENV['green']} #{domain} -n #{resource['entity']['host']}"
|
74
77
|
else
|