capistrano-docker_cluster 1.0.9 → 1.0.10

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
  SHA256:
3
- metadata.gz: 415f83a4e56c85903c87f143f167540c55fdc70f191cb150031a7276d37accfa
4
- data.tar.gz: 1c981c009fa6c6405cbc418493b30d640f42082bd2fdedb4d53b030e851d0017
3
+ metadata.gz: b40dd79c35786b2bdb69a5275589424fb4d7dbc7752fdd6379c8096825321083
4
+ data.tar.gz: eb137917b4e342b5194858c234c98c4da75f6c3e674ae42347e645a43765b603
5
5
  SHA512:
6
- metadata.gz: d9b1a29ea3f4f62b5cb733f7330f3ce40114329dd09f867574dae66cb47cc2fc4c205e456e56fb78e666b87fc2a4e4def0aeff40380cf649fdc894e17d0b63fd
7
- data.tar.gz: 67991d075f69c6ee47e8d6e3db0f369dfe4318ef810e8400f2e5a9fb6dd16df6dada44bbbad7382143efb2601d62be4cac78b75834f8c8b52d5a1df09d0d6ada
6
+ metadata.gz: 0b8d121fa69389c2627a157aa498c2765a55206609e1044e4590d7b1cfe1d381b6474244888a4060ab97c09591e187247bae49c5047ef8fd6a5483e4ebfa16da
7
+ data.tar.gz: 3ca21528cc8ed6d287d5b90cc5cfb0b9920a3776352d7eb61fb91b42eb7a8bb05465f6d46d959bf83ef48e14804b0b955098f2be4e01f9f8416c27e783cf42db
@@ -1,3 +1,7 @@
1
+ # 1.0.10
2
+
3
+ * Update restart task to force restart containers even if they are running the correct image and configuration.
4
+
1
5
  # 1.0.9
2
6
 
3
7
  * Pass --no-healthcheck flag through to docker engine.
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Capistrano
4
4
  module DockerCluster
5
- VERSION = "1.0.9"
5
+ VERSION = "1.0.10"
6
6
  end
7
7
  end
@@ -26,6 +26,8 @@ namespace :deploy do
26
26
 
27
27
  after :reverted, "docker:revert_image"
28
28
 
29
+ task :restart => "docker:restart"
30
+
29
31
  # Required to be defined
30
32
  task :upload do
31
33
  end
@@ -114,10 +116,19 @@ namespace :docker do
114
116
 
115
117
  desc "Restart the docker containers (alias to docker:start)."
116
118
  task :restart do
117
- invoke("docker:start")
119
+ on release_roles(fetch(:docker_roles)) do |host|
120
+ within "#{fetch(:deploy_to)}/current" do
121
+ scripts = Capistrano::DockerCluster::Scripts.new(self)
122
+ Array(scripts.fetch_for_host(host, :docker_apps)).each do |app|
123
+ as_docker_user do
124
+ execute "bin/start", app, "--force"
125
+ end
126
+ end
127
+ end
128
+ end
118
129
  end
119
130
 
120
- desc "Restart the docker containers."
131
+ desc "Start the docker containers."
121
132
  task :start do
122
133
  on release_roles(fetch(:docker_roles)) do |host|
123
134
  within "#{fetch(:deploy_to)}/current" do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-docker_cluster
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.9
4
+ version: 1.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Durand
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-04-25 00:00:00.000000000 Z
11
+ date: 2020-04-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano