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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6e3d4af0c97130e05f1bac754c1cca8df46cbb3f
4
- data.tar.gz: bb00d5e929069a61e1e4bf07943e762f4ffa724f
3
+ metadata.gz: 5461f772c936d907aecbec36b81b5bead56b62da
4
+ data.tar.gz: 05c0b4c6984d8f91b0e3d2406eac231cd2df0586
5
5
  SHA512:
6
- metadata.gz: 8a55dafe561b5bc79f8cf16905570b8e109838f198f6bdd6837aaf4aab12af2cacf097cb4c304c2991017475916a4d836c44114143c91a3d1a0d33c42f871a8d
7
- data.tar.gz: caadb88f1c75b925c86c3c806744dbe0b8584e656a7e8b40eec348383c68ecc2730a765afc5042e87edfd66d95013ada17ab1cbe9525c67e768d87d6d3b90324
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}")
@@ -1,3 +1,3 @@
1
1
  module KumoDockerCloud
2
- VERSION = '3.3.1'
2
+ VERSION = '3.3.2'
3
3
  end
@@ -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.1
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-01 00:00:00.000000000 Z
13
+ date: 2016-06-02 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: httpi