pcf_blue_green 0.0.23 → 0.0.24

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dc2c79bea83ee94918bcc46d956ac19c5458c077
4
- data.tar.gz: 112a39ee14dde7103bc832c731a8762a129c3428
3
+ metadata.gz: 76216773a51783e3108d6eea7d45c9a41e913cbc
4
+ data.tar.gz: ef3ce8dd5d8a82c1044a02a758d12e96c77cbb38
5
5
  SHA512:
6
- metadata.gz: 5129b8b7b0bae34b0304393ad91220a8a7eae192d74ea39b536bd2850e06f9dd9c733e26ee9e92b61442a44000ac5cd00fb1dce6791293abb22f06fa9ae7d1c6
7
- data.tar.gz: f8ce4cc0352bd8acdacb82053f2b96059ea6e0780cf0806dcdf4b4b00ea3b162c3de34e6e43fda79f2c43bf28d540f1e9bed92fd3e8a590dfb754a874a9cd3a4
6
+ metadata.gz: 29c91f11eaed18ec26a9ea7a8241be380d70c8e6ed5ed09392737db5fa552fa2e1a5612d0c08905bc9d635fda8443baa27eeef945c6d57bb57912d1b12722bcf
7
+ data.tar.gz: c217ddab86c49db33150335b8db2243ce817d5a0b0a3f8006e356f9a48b72b4a8ae138d3239f671fe54aa742be0c1e61b34618531bf2abca0c14e8e4ff233491
@@ -1,3 +1,3 @@
1
1
  module PcfBlueGreen
2
- VERSION = "0.0.23"
2
+ VERSION = "0.0.24"
3
3
  end
@@ -146,13 +146,11 @@ 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
- cf routes
150
- echo ${sso_hostname}
151
149
  if [ -z ${sso_hostname+x} ]; then
152
150
  run-cmd cf delete-route $domain -n $green -f
153
151
  else
154
- run-cmd cf routes | tail -n +4 | awk '$2==ENVIRON["green"] {print $3" -n "$2 " --path "substr($4,2)" -f"}' | xargs -n 6
155
- run-cmd cf routes | tail -n +4 | awk '$2==ENVIRON["green"] {print $3" -n "$2 " --path "substr($4,2)" -f"}' | xargs -n 6 cf delete-route
152
+ 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
+ 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
156
154
  fi
157
155
  }
158
156
 
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.0.23
4
+ version: 0.0.24
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pawel Bardzinski