pcf_blue_green 0.0.23 → 0.0.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/pcf_blue_green/version.rb +1 -1
- data/lib/shared-deploy-functions.sh +2 -4
- 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: 76216773a51783e3108d6eea7d45c9a41e913cbc
|
4
|
+
data.tar.gz: ef3ce8dd5d8a82c1044a02a758d12e96c77cbb38
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 29c91f11eaed18ec26a9ea7a8241be380d70c8e6ed5ed09392737db5fa552fa2e1a5612d0c08905bc9d635fda8443baa27eeef945c6d57bb57912d1b12722bcf
|
7
|
+
data.tar.gz: c217ddab86c49db33150335b8db2243ce817d5a0b0a3f8006e356f9a48b72b4a8ae138d3239f671fe54aa742be0c1e61b34618531bf2abca0c14e8e4ff233491
|
@@ -146,13 +146,11 @@ 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
|
-
cf routes
|
150
|
-
echo ${sso_hostname}
|
151
149
|
if [ -z ${sso_hostname+x} ]; then
|
152
150
|
run-cmd cf delete-route $domain -n $green -f
|
153
151
|
else
|
154
|
-
run-cmd cf routes | tail -n +4 | awk '$2==ENVIRON["green"] {print $3" -n "$2 " --path "substr($4,2)" -f"}' | xargs -n 6
|
155
|
-
run-cmd cf routes | tail -n +4 | awk '$2==ENVIRON["green"] {print $3" -n "$2 " --path "substr($4,2)" -f"}' | xargs -n 6 cf delete-route
|
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
|
153
|
+
run-cmd 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
|
156
154
|
fi
|
157
155
|
}
|
158
156
|
|