kumo_dockercloud 3.3.0 → 3.3.1

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: 3e7a3083ac7e9265513cc75563a7b7e161e1a286
4
- data.tar.gz: 42ae9a4b63c95fb00f8ee706cc5df18f1a81cb51
3
+ metadata.gz: 6e3d4af0c97130e05f1bac754c1cca8df46cbb3f
4
+ data.tar.gz: bb00d5e929069a61e1e4bf07943e762f4ffa724f
5
5
  SHA512:
6
- metadata.gz: 0cb94285609c0da1c6197adf3548e089000d8d8c0cdee521e38de7ca770cf5c28e2fa2b5d4b39bbcda43fb6a185297d4d2cd3df36e5c10ba499f10709637a61a
7
- data.tar.gz: 0736d09ec8b388a88e7f415c38c94241fff02739ee0065f4a356cf34bbcba2fae25bb5031e585e9bf5e0513cc7085d6b9fef5724580872407befdc1d4048e2a6
6
+ metadata.gz: 8a55dafe561b5bc79f8cf16905570b8e109838f198f6bdd6837aaf4aab12af2cacf097cb4c304c2991017475916a4d836c44114143c91a3d1a0d33c42f871a8d
7
+ data.tar.gz: caadb88f1c75b925c86c3c806744dbe0b8584e656a7e8b40eec348383c68ecc2730a765afc5042e87edfd66d95013ada17ab1cbe9525c67e768d87d6d3b90324
@@ -27,7 +27,7 @@ module KumoDockerCloud
27
27
  command_output = haproxy_command.execute('show stat')
28
28
  retry_counter += 1
29
29
  end
30
- raise HAProxyStateError.new("Could not get stats from HAProxy backend") if command_output.empty?
30
+ raise HAProxyStateError.new("Could not get stats from HAProxy backend from container id: #{@container_id}") if command_output.empty?
31
31
  CSV.parse(command_output, headers: true)
32
32
  end
33
33
 
@@ -12,8 +12,9 @@ module KumoDockerCloud
12
12
 
13
13
  raise KumoDockerCloud::HAProxyStateError.new('Could not get instances of the haproxy container for this environment') if haproxy_containers.empty?
14
14
 
15
- haproxy_threads = haproxy_containers.map { |haproxy_container| Thread.new { haproxy_container.disable_server(service_to_disable) } }
16
- haproxy_threads.each(&:join)
15
+ haproxy_containers.each do |haproxy_container|
16
+ haproxy_container.disable_server(service_to_disable)
17
+ end
17
18
  end
18
19
 
19
20
  def enable_service(service)
@@ -22,8 +23,9 @@ module KumoDockerCloud
22
23
 
23
24
  raise KumoDockerCloud::HAProxyStateError.new('Could not get instances of the haproxy container for this environment') if haproxy_containers.empty?
24
25
 
25
- haproxy_threads = haproxy_containers.map { |haproxy_container| Thread.new { haproxy_container.enable_server(service_to_enable) } }
26
- haproxy_threads.each(&:join)
26
+ haproxy_containers.each do |haproxy_container|
27
+ haproxy_container.enable_server(service_to_enable)
28
+ end
27
29
  end
28
30
  end
29
31
  end
@@ -1,3 +1,3 @@
1
1
  module KumoDockerCloud
2
- VERSION = '3.3.0'
2
+ VERSION = '3.3.1'
3
3
  end
@@ -39,7 +39,7 @@ EOF
39
39
  expect(haproxy_command).to receive(:execute).with('show stat').exactly(3).times.and_return('')
40
40
  expect { subject.disable_server(server_name) }.to raise_error(
41
41
  KumoDockerCloud::HAProxyStateError,
42
- "Could not get stats from HAProxy backend"
42
+ "Could not get stats from HAProxy backend from container id: container-id"
43
43
  )
44
44
  end
45
45
 
@@ -69,7 +69,7 @@ EOF
69
69
  expect(haproxy_command).to receive(:execute).with('show stat').exactly(3).times.and_return('')
70
70
  expect { subject.enable_server(server_name) }.to raise_error(
71
71
  KumoDockerCloud::HAProxyStateError,
72
- "Could not get stats from HAProxy backend"
72
+ "Could not get stats from HAProxy backend from container id: container-id"
73
73
  )
74
74
  end
75
75
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kumo_dockercloud
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.3.0
4
+ version: 3.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Redbubble