kumo_dockercloud 3.3.1 → 3.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/kumo_dockercloud/stack.rb +4 -0
- data/lib/kumo_dockercloud/version.rb +1 -1
- data/spec/kumo_dockercloud/stack_spec.rb +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5461f772c936d907aecbec36b81b5bead56b62da
|
4
|
+
data.tar.gz: 05c0b4c6984d8f91b0e3d2406eac231cd2df0586
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 34d868030388555da99588becc981bee1c3373e9e0ca88b38f7247afddeef1723bfb88b37e6f9c470eff2c442a094ede7b4639233c6f4f41720c7c8b1057aae3
|
7
|
+
data.tar.gz: 105442d8007d76137e22e6176112f748fa751785ad69e93ee6066b47a3434b224bb415049783600433980744b05315ac2a4e06e48eaa214dcf39fed29dbbb5b4
|
@@ -26,9 +26,13 @@ module KumoDockerCloud
|
|
26
26
|
services = service_names.map { |name| Service.new(stack_name, name) }
|
27
27
|
ordered_deployment(services).each do |service|
|
28
28
|
begin
|
29
|
+
ConsoleJockey.write_line("Attempting to put #{service.name} into maintenance mode in HAProxy")
|
29
30
|
haproxy_service.disable_service(service) unless service.state == "Stopped"
|
31
|
+
ConsoleJockey.write_line("Deploying version #{version} to #{service.name}")
|
30
32
|
service.deploy(version)
|
33
|
+
ConsoleJockey.write_line("Verifying that #{service.name} was successfully deployed")
|
31
34
|
checker.verify(service)
|
35
|
+
ConsoleJockey.write_line("Attempting to reenable #{service.name} in HAProxy")
|
32
36
|
haproxy_service.enable_service(service)
|
33
37
|
rescue HAProxyStateError => e
|
34
38
|
raise ServiceDeployError.new("Unable to place service #{service.name} into maintainance mode on HAProxy with message: #{e.message}")
|
@@ -79,6 +79,7 @@ describe KumoDockerCloud::Stack do
|
|
79
79
|
allow(KumoDockerCloud::Service).to receive(:new).with(stack_name, 'service-a').and_return(service_a)
|
80
80
|
allow(KumoDockerCloud::Service).to receive(:new).with(stack_name, 'service-b').and_return(service_b)
|
81
81
|
allow(KumoDockerCloud::HaproxyService).to receive(:new).with(stack_name).and_return(haproxy)
|
82
|
+
allow(KumoDockerCloud::ConsoleJockey).to receive(:write_line)
|
82
83
|
end
|
83
84
|
|
84
85
|
it 'deploys to each service when both are active' do
|
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.
|
4
|
+
version: 3.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Redbubble
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2016-06-
|
13
|
+
date: 2016-06-02 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: httpi
|