pcf_blue_green 0.0.33 → 0.0.34

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a7d1290d26506a5080f4fffad8c6346eaa03a0a7
4
- data.tar.gz: 71407a2468de3fda0add279e13e10b87746cc0be
3
+ metadata.gz: d12c05df8c3a8dd6646a9695f5cfd2bdcbc4f364
4
+ data.tar.gz: fefbbbd861d430603eb67b3f852ccd9277be50ed
5
5
  SHA512:
6
- metadata.gz: e4fa32916af8b3a94fb07d9440c8d19511841fdc54b2d2c23b0b072a9e19d55e3c1611a05a051b8032ef4bf813b7dbd488ddf7822e986766872aceb480971c9a
7
- data.tar.gz: 4b1f71359dd96febde3733871523dc797e7b4787b24207cab7e19e006152a9126811627d2738e5c6560402532c4e37f356d93314b6629e45cda97917574ffec2
6
+ metadata.gz: 843d4e2249b70ecb59f8fc1a501c9756143d8b7073a25589cc6226fad578e5f8c095b1824dac82ce4bdffddcb92bb053d128cec44e07c044129bdcde05d177aa
7
+ data.tar.gz: 9d1fa5cc253fb0594f54f554170aa54510d2072fe2104bb8b1fce171f1972e8b3eb218cab442f10d2383776e8e0ac3902d031ec1727c2c76ca9cfe6f26385a9e
@@ -1,3 +1,3 @@
1
1
  module PcfBlueGreen
2
- VERSION = "0.0.33"
2
+ VERSION = "0.0.34"
3
3
  end
@@ -146,9 +146,8 @@ function remap-routes {
146
146
  function remove-blue {
147
147
  run-cmd cf delete ${blue} -f
148
148
  run-cmd cf rename $green $blue
149
- if [ -z ${sso_hostname+x} ]; then
150
- run-cmd cf delete-route $domain -n $green -f
151
- else
149
+ run-cmd cf delete-route $domain -n $green -f
150
+ if [ -n ${sso_hostname+x} ]; then
152
151
  set -x
153
152
  run-cmd cf routes | tail -n +4 | awk '($2==ENVIRON["green"]) && $4 {print $3" -n "$2 " --path "substr($4,2)" -f"}' | xargs -n 6
154
153
  cf routes | tail -n +4 | awk '($2==ENVIRON["green"]) && $4 {print $3" -n "$2 " --path "substr($4,2)" -f"}' | xargs -n 6 cf delete-route
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pcf_blue_green
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.33
4
+ version: 0.0.34
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pawel Bardzinski