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 +4 -4
- data/CHANGE_LOG.md +4 -0
- data/lib/capistrano/docker_cluster/version.rb +1 -1
- data/lib/capistrano/tasks/docker_cluster.rake +13 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b40dd79c35786b2bdb69a5275589424fb4d7dbc7752fdd6379c8096825321083
|
4
|
+
data.tar.gz: eb137917b4e342b5194858c234c98c4da75f6c3e674ae42347e645a43765b603
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0b8d121fa69389c2627a157aa498c2765a55206609e1044e4590d7b1cfe1d381b6474244888a4060ab97c09591e187247bae49c5047ef8fd6a5483e4ebfa16da
|
7
|
+
data.tar.gz: 3ca21528cc8ed6d287d5b90cc5cfb0b9920a3776352d7eb61fb91b42eb7a8bb05465f6d46d959bf83ef48e14804b0b955098f2be4e01f9f8416c27e783cf42db
|
data/CHANGE_LOG.md
CHANGED
@@ -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
|
-
|
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 "
|
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.
|
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-
|
11
|
+
date: 2020-04-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capistrano
|