pcf_blue_green 0.43.1 → 0.43.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 +0 -7
- 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: 33782d6af5e636eabbfe524db4dd0d42973bcac9
|
4
|
+
data.tar.gz: 4cc1288b6e243aa209deeb3c63fff81ac993a461
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5adf584e6910896416d6819ef6f0281d10668a4d1d86b28d73a390c6ee2109ec64dd43177a633c8d6fdaa3b887ade251ac5d2df7cee553d228955169177f6699
|
7
|
+
data.tar.gz: a26b681e7e43b1e7891ceeb6836e32387ac42fd35f3c7d6bb3326bcba738f5301e8900330d3a9e17965e335b75f5208a60e739e638782efa4868b88300770f36
|
data/lib/pcf_blue_green.rb
CHANGED
@@ -66,14 +66,10 @@ module PcfBlueGreen
|
|
66
66
|
puts "green is #{ENV['green']}"
|
67
67
|
mapped_routes = []
|
68
68
|
entity = entity_for(ENV['cf_app'])
|
69
|
-
puts entity
|
70
69
|
if entity
|
71
|
-
puts routes_stdout(entity)['resources']
|
72
70
|
routes_stdout(entity)['resources'].each do |resource|
|
73
71
|
domain_url = resource['entity']['domain_url']
|
74
72
|
domain = domain_for(domain_url)
|
75
|
-
puts "path: #{resource['entity']['path']}"
|
76
|
-
puts "is empty?: resource['entity']['path'].empty?"
|
77
73
|
if resource['entity']['path'].empty?
|
78
74
|
cmd = "#{map_route_command} #{ENV['green']} #{domain} -n #{resource['entity']['host']}"
|
79
75
|
else
|
@@ -120,9 +116,6 @@ module PcfBlueGreen
|
|
120
116
|
space_guid = nil
|
121
117
|
raise Csaa::Pcf::Unauthorized unless space_guid_json(shell.stdout)['resources']
|
122
118
|
space_guid_json(shell.stdout)['resources'].each do |resource|
|
123
|
-
puts "space guid"
|
124
|
-
puts resource
|
125
|
-
puts @space
|
126
119
|
if resource['entity']['name'] == @space
|
127
120
|
space_guid = resource['metadata']['guid']
|
128
121
|
end
|