pcf_blue_green 0.22 → 0.23
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/version.rb +1 -1
- data/lib/shared-deploy-functions.sh +7 -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: f28565c2d5b24625255726fda7affb2b4da94a09
|
4
|
+
data.tar.gz: a7efb46d5fe197e146213af11f675999b7a94bbd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7ce92e831461bb4128e4c58eba7964d01a77ef29b449948c854655b19aada175bf7ce66b06ab58bd10fd20609d972e759c5e8fafb100651f1a9c8d6b36301588
|
7
|
+
data.tar.gz: 0f754921ca2df8a1ea9ba75ded94f8e95ecf8c8e896ebc66a8dddcba7a77434bc3a99b9f4d00501c2d78f3b2cfd2a754ed1d9e367f712b0ca741c653b3b240b8
|
@@ -143,6 +143,12 @@ function remap-routes {
|
|
143
143
|
cf routes | tail -n +4 | awk '($2==ENVIRON["sso_hostname"]) && ($5==ENVIRON["cf_app"]) {print $3" -n "$2 " --path "substr($4,2) }' | xargs -n 5 cf map-route ${green}
|
144
144
|
fi
|
145
145
|
|
146
|
+
if [ -n "$handle_all_green_paths" ]; then
|
147
|
+
run-cmd cf routes | tail -n +4 | awk '($5==ENVIRON["cf_app"]) {print $3" -n "$2 " --path "substr($4,2) }'
|
148
|
+
cf routes | tail -n +4 | awk '($5==ENVIRON["cf_app"]) {print $3" -n "$2 " --path "substr($4,2) }' | xargs -n 5 cf map-route ${green}
|
149
|
+
fi
|
150
|
+
|
151
|
+
|
146
152
|
set +x
|
147
153
|
}
|
148
154
|
|
@@ -150,7 +156,7 @@ function remove-blue {
|
|
150
156
|
run-cmd cf delete ${blue} -f
|
151
157
|
run-cmd cf rename $green $blue
|
152
158
|
run-cmd cf delete-route $domain -n $green -f
|
153
|
-
if [ -n "$sso_hostname" ] || [ -n "$
|
159
|
+
if [ -n "$sso_hostname" ] || [ -n "$handle_all_green_paths" ]; then
|
154
160
|
set -x
|
155
161
|
run-cmd cf routes | tail -n +4 | awk '($2==ENVIRON["green"]) && $4 {print $3" -n "$2 " --path "substr($4,2)" -f"}' | xargs -n 6
|
156
162
|
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
|