pcf_blue_green 0.31 → 0.32

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: 21a8d9dcd46b75dc8f68e80b66cf0ee975b62384
4
- data.tar.gz: 56450ae1729ce4ead03579eb33716964361086a5
3
+ metadata.gz: 8adcf8eeaa5e7d24dada0ee75e1700c28673db84
4
+ data.tar.gz: 0b64fa9c0e835cde3a9a64519c6259dafa8cc810
5
5
  SHA512:
6
- metadata.gz: fcca7e28597825a7343928fba5f3c88be76c2959f5898fcd3312388eaf7b7193e095ba367d87b9d65dbe051528e4e8bad8ceb31a3353848ba03a66e2fd80daf6
7
- data.tar.gz: 66f7975847533c341a22160bb18fabeb856757bbcfd40bbe04d64658adfea49a54865f42efac3dfbfb28aee1d82fd34248168705a336578f43ae56f9424e45cf
6
+ metadata.gz: 4559b483bf50ddb99c7d051f822a9bcb85fa03e10ff0d164b2afc8eeaa1bdaf386c1698c76b05e5754cf8a367d14ccd7ac81b270bdb32f79a17c6993c3d40e46
7
+ data.tar.gz: 6cda3ffb2f288100e56a4e77ea53346b46a2cfe7e0d936298bff69a91fce84f4c1f56a506fabbd40254c2cc73b0a2ff0d58b5254a7a55bd3b98a3fafcaf4f564
@@ -40,7 +40,7 @@ module PcfBlueGreen
40
40
  mapped_routes = []
41
41
 
42
42
  if ENV['handle_all_paths']
43
- cmd = "#{cf_routes_output} | tail -n +2 | awk '($5==ENVIRON[\"cf_app\"]) {print $3\" -n \"$2 \" --path \"substr($4,2) }' | xargs -n 5 #{map_route_command} #{ENV['green']}"
43
+ cmd = "#{cf_routes_output} | tail -n +4 | awk '($5==ENVIRON[\"cf_app\"]) {print $3\" -n \"$2 \" --path \"substr($4,2) }' | xargs -n 5 #{map_route_command} #{ENV['green']}"
44
44
  shell = Mixlib::ShellOut.new(cmd)
45
45
  shell.run_command
46
46
  unless shell.stderr.empty?
@@ -49,7 +49,7 @@ module PcfBlueGreen
49
49
  end
50
50
  mapped_routes += shell.stdout.split("\n")
51
51
  end
52
- cmd = "#{cf_routes_output} | tail -n +2 | awk '($4==ENVIRON[\"cf_app\"]) {print $3\" -n \" $2}' | xargs -n 3 #{map_route_command} #{ENV['green']}"
52
+ cmd = "#{cf_routes_output} | tail -n +4 | awk '($4==ENVIRON[\"cf_app\"]) {print $3\" -n \" $2}' | xargs -n 3 #{map_route_command} #{ENV['green']}"
53
53
  shell = Mixlib::ShellOut.new(cmd)
54
54
  shell.run_command
55
55
  unless shell.stderr.empty?
@@ -72,10 +72,11 @@ module PcfBlueGreen
72
72
  end
73
73
 
74
74
  def cf_routes_output
75
- cmd = "cf routes"
76
- shell = Mixlib::ShellOut.new(cmd)
77
- shell.run_command
78
- shell.stdout
75
+ "cf routes"
76
+ # cmd = "cf routes"
77
+ # shell = Mixlib::ShellOut.new(cmd)
78
+ # shell.run_command
79
+ # shell.stdout
79
80
  end
80
81
 
81
82
  def map_route_command
@@ -1,3 +1,3 @@
1
1
  module PcfBlueGreen
2
- VERSION = "0.31"
2
+ VERSION = "0.32"
3
3
  end
@@ -1,4 +1,5 @@
1
1
 
2
+
2
3
  space host domain port path type apps service
3
4
  app-space onemoreapp apps.prod.domain.com onemoreapp
4
5
  app-space otherapp apps.prod.domain.com otherapp
@@ -1,4 +1,5 @@
1
1
 
2
+
2
3
  space host domain port path type apps service
3
4
  app-space first-app apps.prod.domain.com.com first-app
4
5
  app-space second-app apps.prod.domain.com.com second-app
@@ -1,4 +1,5 @@
1
1
 
2
+
2
3
  space host domain port path type apps service
3
4
  app-space simpleapp apps.prod.domain.com simpleapp
4
5
  app-space otherapp apps.prod.domain.com otherapp
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.31'
4
+ version: '0.32'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pawel Bardzinski