pcf_blue_green 0.0.18 → 0.0.19

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: 2164661ea3a3f8dc8128b22e223c48a8044d37fd
4
- data.tar.gz: 4f66a0ede0b68ee17c04033304cd609d046d4910
3
+ metadata.gz: 3228ebf86ea63ca8e0a00c7d9822be9d13891314
4
+ data.tar.gz: 5a40567d266d65b230117e9ccf6385080ceeecd0
5
5
  SHA512:
6
- metadata.gz: b13f3e81e22228e43e69a3f67e151a288e20b7fdd45678b786e1ca48ab8ef2d8df8332ce94694728b826fda53cc6f7fb9cd8725a28c590e90d5472cb354a4d5d
7
- data.tar.gz: fccddc4659641dfd3a261d55acd5d81d0a37b82345253c9771cbe5f251b364571c9e963ce52871efa98893fe6f88828d06e68fa99b565911ca2698fafee145e8
6
+ metadata.gz: 871d51d8bf7b6b70abbeb17ec2b32f185e7a6bb1999136a44165cf2cab86c2c90597c9f8442680634b25a16ba972a55c781ad50d704dfa788df03d49beb55b6d
7
+ data.tar.gz: 077bf0e58c01c8240d6f246b9821551f0c7be4777a62a11e525f83180dc172afe90ef3ef61551ec7131572fd3286988e7ba16efa4de0077706fb6a0782f05a3a
@@ -1,3 +1,3 @@
1
1
  module PcfBlueGreen
2
- VERSION = "0.0.18"
2
+ VERSION = "0.0.19"
3
3
  end
@@ -131,8 +131,15 @@ function remap-routes {
131
131
  echo "green is ${green}"
132
132
  set -x
133
133
  run-cmd cf routes
134
- run-cmd cf routes | tail -n +4 | grep ${cf_app} | awk '{print $3" -n "$2}'
135
- cf routes | tail -n +4 | grep ${cf_app} | awk '{print $3" -n "$2}' | xargs -n 3 cf map-route ${green}
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.18
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-27 00:00:00.000000000 Z
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
Binary file