pcf_blue_green 0.1.2 → 0.1.3
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 +4 -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: 581efa7598f1295c9d806403cd7e92077681d528
|
4
|
+
data.tar.gz: c46a22b4bfcb649fbf6ee6bf76d0303fca0c2a92
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8d87891678c2bbbbf38243ea454a404ab74377e62507105efed93345520539a284d40def6164b0522a4f7f5cf44b15b6f51c348bf535aab5be2fd321860a59d3
|
7
|
+
data.tar.gz: 200a9ced3b80934340bbc797f46476223ffcff7a6cc06de92aa6b33102651f081b981f83ef619485bb4e569f941b84c6b9deae700edf226c7c0404a7f88432bf
|
@@ -136,6 +136,9 @@ function remap-routes {
|
|
136
136
|
run-cmd cf routes | tail -n +4 | grep ${cf_app} | awk '{print $3" -n "$2}'
|
137
137
|
cf routes | tail -n +4 | grep ${cf_app} | awk '{print $3" -n "$2}' | xargs -n 3 cf map-route ${green}
|
138
138
|
else
|
139
|
+
if [ -n "$map_main_route" ]; then
|
140
|
+
run-cmd cf routes | tail -n +4 | awk '($3==ENVIRON["domain"]) && ($2==ENVIRON["hostname"]) {print $3" -n " $2 }' | xargs -n 3 cf map-route ${green}
|
141
|
+
fi
|
139
142
|
run-cmd cf routes | tail -n +4 | awk '($2==ENVIRON["sso_hostname"]) && ($5==ENVIRON["cf_app"]) {print $3" -n "$2 " --path "substr($4,2) }'
|
140
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}
|
141
144
|
fi
|
@@ -156,7 +159,7 @@ function remove-blue {
|
|
156
159
|
}
|
157
160
|
|
158
161
|
function get-domain {
|
159
|
-
domain=$(cf routes | grep ${cf_app} | awk '{print $3}' | grep "^apps\\." | tail -1)
|
162
|
+
export domain=$(cf routes | grep ${cf_app} | awk '{print $3}' | grep "^apps\\." | tail -1)
|
160
163
|
announce-task "Domain is ${domain}"
|
161
164
|
}
|
162
165
|
|