pcf_blue_green 0.0.13 → 0.0.14

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: 67eaa001a701aa467d2817c022b63c687d5b70a7
4
- data.tar.gz: d5026636ea2dfe80077c4bed9c2cd18ee5c84770
3
+ metadata.gz: 8c0db7babaa8a64a809852f486a537da8692cf41
4
+ data.tar.gz: aea2c6cea0a03b34a01db433110132b0766fea24
5
5
  SHA512:
6
- metadata.gz: e78d796c2f74adf834f4b9ab4408130cd56673e1800aa6e9f45efcb5ac3497647882b99281419b2af82e28298a2d97ecd83d24c3acb92ee31252382469392390
7
- data.tar.gz: b3098ce29bfb758e0b07125a114ed45899a410a41df77c04e894b3016caeac936118d0df450630b382f3723fc248723a29f58695ce8e2d6f4ec0d71a4e0f9494
6
+ metadata.gz: bbbe8101ed5116d6b20f238db1a540eb649efdb2f7c90dccabcf868dc43880fbd72ebb76b55fd48bbfa324ab0de13f59eb251e84d7b1a90e127221d8ea65030b
7
+ data.tar.gz: 874884dc813250bfd20b3df2dc56f48cdd385a656925d4d69928c416bc2812a8f6ff86ca20e338cb9bc67140fd02af41c244b7cd4c727daf48e34f71aa409e66
@@ -1,3 +1,3 @@
1
1
  module PcfBlueGreen
2
- VERSION = "0.0.13"
2
+ VERSION = "0.0.14"
3
3
  end
@@ -76,7 +76,7 @@ function check-health {
76
76
  kv=$(echo $cf_output| egrep -o 'MAINTENANCE_ENABLED: \S*')
77
77
  arrkv=(${kv// / })
78
78
  if [ ${arrkv[1]} == true ] ; then
79
- status=$(curl -sSIL -o /dev/null -w "%{http_code}" ${app_url} --insecure)
79
+ status=$(curl -sSIL -X GET -o /dev/null -w "%{http_code}" ${app_url} --insecure)
80
80
  if [ $status == 503 ] ; then
81
81
  echo -e "${BGre}curl of ${app_url} 503 OK"
82
82
  else
@@ -85,7 +85,7 @@ function check-health {
85
85
  fi
86
86
  else
87
87
  curl -fsSIL --user "${BASIC_AUTH_USERNAME}:${BASIC_AUTH_PASSWORD}" ${app_url} --insecure
88
- status=$(curl -sSIL -o /dev/null -w "%{http_code}" ${app_url} --insecure)
88
+ status=$(curl -sSIL -X GET -o /dev/null -w "%{http_code}" ${app_url} --insecure)
89
89
  if [ $status == 200 ] ; then
90
90
  echo -e "${BGre}curl of ${app_url} 200 OK"
91
91
  else
@@ -94,8 +94,8 @@ function check-health {
94
94
  fi
95
95
  fi
96
96
  else
97
- curl -fsSIL --user "${BASIC_AUTH_USERNAME}:${BASIC_AUTH_PASSWORD}" ${app_url} --insecure
98
- status=$(curl -sSIL -o /dev/null -w "%{http_code}" ${app_url} --insecure)
97
+ curl -fsSIL -X GET --user "${BASIC_AUTH_USERNAME}:${BASIC_AUTH_PASSWORD}" ${app_url} --insecure
98
+ status=$(curl -sSIL -X GET -o /dev/null -w "%{http_code}" ${app_url} --insecure)
99
99
  if [ $status == 200 ] ; then
100
100
  echo -e "${BGre}curl of ${app_url} 200 OK"
101
101
  else
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.13
4
+ version: 0.0.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pawel Bardzinski