capistrano-supervisor 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -3
- data/capistrano-supervisor.gemspec +1 -1
- data/lib/capistrano/tasks/supervisor.rake +6 -9
- 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: 3be80d878a554ad4756f43451da3e6f15c150003
|
4
|
+
data.tar.gz: cba36d7ebd7a03b28b9a5b447f0c937bc88a459f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 17072d5b04fcc86e4d624f78134c3c880a236a925b9a512facde7473980518fd12b32ff88f192dcb24679676ab81082177b3c57d627e69c890097d81ea1b64b9
|
7
|
+
data.tar.gz: b01bce920812e436dd967a840884f49141082f9b02993cf114e440c2a8f9651e7919fc5f7cd0c815251eb298a07603169d4224ef71780f1eb26822117991417e
|
data/README.md
CHANGED
@@ -28,13 +28,12 @@ require 'capistrano/supervisor'
|
|
28
28
|
```
|
29
29
|
|
30
30
|
The task will run after `deploy:published` as part of Capistrano's default deploy,
|
31
|
-
or can be run in isolation with `cap production supervisord:
|
31
|
+
or can be run in isolation with `cap production supervisord:reload`
|
32
32
|
|
33
33
|
### Configurable options:
|
34
34
|
|
35
35
|
```ruby
|
36
|
-
set :
|
37
|
-
set :supervisord_restart_processes, []
|
36
|
+
set :supervisord_reload_roles, :app
|
38
37
|
```
|
39
38
|
|
40
39
|
## Development
|
@@ -1,19 +1,16 @@
|
|
1
1
|
namespace :supervisord do
|
2
|
-
desc '
|
3
|
-
task :
|
4
|
-
on roles fetch(:
|
5
|
-
|
6
|
-
execute "supervisorctl restart #{program}"
|
7
|
-
end
|
2
|
+
desc 'Reloads supervisord'
|
3
|
+
task :reload do
|
4
|
+
on roles fetch(:supervisord_reload_roles) do
|
5
|
+
execute "supervisorctl reload"
|
8
6
|
end
|
9
7
|
end
|
10
8
|
|
11
|
-
after 'deploy:published', 'supervisord:
|
9
|
+
after 'deploy:published', 'supervisord:reload'
|
12
10
|
end
|
13
11
|
|
14
12
|
namespace :load do
|
15
13
|
task :defaults do
|
16
|
-
set :
|
17
|
-
set :supervisord_restart_processes, []
|
14
|
+
set :supervisord_reload_roles, :app
|
18
15
|
end
|
19
16
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-supervisor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Emil Kilhage
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-09-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capistrano
|