pcf_blue_green 0.26 → 0.27

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ca593b08d6c40ebdbbc54c9833df1f900bc9fe8c
4
- data.tar.gz: 1ca466e6d16fc15f2e20425b75ead6353e8afb6b
3
+ metadata.gz: 2e7d3e5b1c7a229ff7dcce2289072e1b509bb169
4
+ data.tar.gz: 1f233c982995aea7b941f14b4be4c5de662a8672
5
5
  SHA512:
6
- metadata.gz: d3d8f4ebfe373bfc1256e6a5f9874a56d60aa9891832d63241bf1982238647a1d2288398d9e4aa5161c0dedd67a8ed2b9ef99c42e047aa1a023d183872403b5d
7
- data.tar.gz: f1850390209b34750714cfdab937e1e2a8a1837539b36d027711c1a788db5f3fac080d21229daeb6780cadcdad3da7c61365cd3d953cb6358551a5b1e07bfd64
6
+ metadata.gz: 3bcf15f653a4b4852afa21d1bf42298ea4b50cba9367f252830149260e0715565a467ec9fc0596b4ac9af46ca7483579d0f7d7888f1926fcf70bb307353d32d3
7
+ data.tar.gz: 84def66c6415626b510308a80c4c63831006e466fe053a606f9057451f3710b71932ac2a1f73397a95e72e7e13f9f131cb188e39ba9403cb34eaef7143f49ba0
@@ -1,3 +1,3 @@
1
1
  module PcfBlueGreen
2
- VERSION = "0.26"
2
+ VERSION = "0.27"
3
3
  end
@@ -135,7 +135,9 @@ function remap-routes {
135
135
  if [ -z ${sso_hostname+x} ] && [ -z ${handle_all_green_paths+x} ]; then
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
- else
138
+ fi
139
+
140
+ if [ -n "$sso_hostname" ]; then
139
141
  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
142
  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
143
  fi
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pcf_blue_green
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.26'
4
+ version: '0.27'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pawel Bardzinski