pcf_blue_green 0.0.24 → 0.0.25
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 +6 -0
- 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: 3c4e00d2d8cc55ba9aa17a06e0f2f827eecac13a
|
|
4
|
+
data.tar.gz: a2fd47ba013f83809417af5915fba301b30cfb5d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 48198f620abf368ecee682de4f7ad9edd1dd2de8864fe519241ffb059079a0ecd0737c544b03d6040e49ba46e83d5ed4c82cba4db2ce29fe713220efc98d64be
|
|
7
|
+
data.tar.gz: 6207d55253939002ca6607345228281d05c4e10e2b7a820884802205a5d583c2e4aee4839b3966459d1756bb00dcb8990a34a782c59499109a547df75761a2c0
|
|
@@ -146,12 +146,18 @@ 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
|
+
echo $sso_hostname
|
|
150
|
+
run-cmd cf routes
|
|
151
|
+
run-cmd cf routes | tail -n +4 | awk '($2==ENVIRON["green"]) && $4 {print $3" -n "$2 " --path "substr($4,2)" -f"}' | xargs -n 6
|
|
152
|
+
set -x
|
|
149
153
|
if [ -z ${sso_hostname+x} ]; then
|
|
150
154
|
run-cmd cf delete-route $domain -n $green -f
|
|
151
155
|
else
|
|
156
|
+
echo 'insde sso'
|
|
152
157
|
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
158
|
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
|
|
154
159
|
fi
|
|
160
|
+
set +x
|
|
155
161
|
}
|
|
156
162
|
|
|
157
163
|
function get-domain {
|