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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 445f6a98b597b3441a2c72b08f3ff33393a15a4e
4
- data.tar.gz: 1d111ab12ddaa835a0a343bf23e2a0787e52c457
3
+ metadata.gz: 3be80d878a554ad4756f43451da3e6f15c150003
4
+ data.tar.gz: cba36d7ebd7a03b28b9a5b447f0c937bc88a459f
5
5
  SHA512:
6
- metadata.gz: e5e2fc53dfab25978594c5e76b19011e2aabb7d6c0c6fcdb5d6a033acbcde6908fd363b146e5b71c21145ff44ea2ac83be1bc126e8c83a3b26a909307fca2bcc
7
- data.tar.gz: 1fc475311fd28d4e079d1810b8f88a425b8ff7b4471aba4c42366935b217581236dfe7eafcfac853987ae688c3223e12338a4b139b71221b7b742fc906d2b87c
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:restart`
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 :supervisord_restart_roles, :app
37
- set :supervisord_restart_processes, []
36
+ set :supervisord_reload_roles, :app
38
37
  ```
39
38
 
40
39
  ## Development
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "capistrano-supervisor"
7
- spec.version = '0.1.0'
7
+ spec.version = '0.2.0'
8
8
  spec.authors = ["Emil Kilhage"]
9
9
  spec.email = ["emil.kilhage@glooby.com"]
10
10
 
@@ -1,19 +1,16 @@
1
1
  namespace :supervisord do
2
- desc 'Restarts supervisord processes'
3
- task :restart do
4
- on roles fetch(:supervisord_restart_roles) do
5
- fetch(:supervisord_restart_processes).each do |program|
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:restart'
9
+ after 'deploy:published', 'supervisord:reload'
12
10
  end
13
11
 
14
12
  namespace :load do
15
13
  task :defaults do
16
- set :supervisord_restart_roles, :app
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.1.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-07-19 00:00:00.000000000 Z
11
+ date: 2015-09-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano