pcf_blue_green 0.0.18 → 0.0.19
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 +9 -2
- metadata +2 -3
- data/pcf_blue_green-0.0.17.gem +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3228ebf86ea63ca8e0a00c7d9822be9d13891314
|
4
|
+
data.tar.gz: 5a40567d266d65b230117e9ccf6385080ceeecd0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 871d51d8bf7b6b70abbeb17ec2b32f185e7a6bb1999136a44165cf2cab86c2c90597c9f8442680634b25a16ba972a55c781ad50d704dfa788df03d49beb55b6d
|
7
|
+
data.tar.gz: 077bf0e58c01c8240d6f246b9821551f0c7be4777a62a11e525f83180dc172afe90ef3ef61551ec7131572fd3286988e7ba16efa4de0077706fb6a0782f05a3a
|
@@ -131,8 +131,15 @@ function remap-routes {
|
|
131
131
|
echo "green is ${green}"
|
132
132
|
set -x
|
133
133
|
run-cmd cf routes
|
134
|
-
|
135
|
-
|
134
|
+
|
135
|
+
if [ -z ${sso_hostname+x} ]; then
|
136
|
+
run-cmd cf routes | tail -n +4 | grep ${cf_app} | awk '{print $3" -n "$2}'
|
137
|
+
cf routes | tail -n +4 | grep ${cf_app} | awk '{print $3" -n "$2}' | xargs -n 3 cf map-route ${green}
|
138
|
+
else
|
139
|
+
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
|
+
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
|
+
fi
|
142
|
+
|
136
143
|
set +x
|
137
144
|
}
|
138
145
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pcf_blue_green
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.19
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pawel Bardzinski
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-02-
|
11
|
+
date: 2017-02-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mixlib-shellout
|
@@ -91,7 +91,6 @@ files:
|
|
91
91
|
- lib/pcf_blue_green.rb
|
92
92
|
- lib/pcf_blue_green/version.rb
|
93
93
|
- lib/shared-deploy-functions.sh
|
94
|
-
- pcf_blue_green-0.0.17.gem
|
95
94
|
- pcf_blue_green.gemspec
|
96
95
|
- spec/pcf_blue_green_spec.rb
|
97
96
|
- spec/spec_helper.rb
|
data/pcf_blue_green-0.0.17.gem
DELETED
Binary file
|