capistrano-supervisor 0.2.0 → 1.0.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: 3be80d878a554ad4756f43451da3e6f15c150003
4
- data.tar.gz: cba36d7ebd7a03b28b9a5b447f0c937bc88a459f
3
+ metadata.gz: 559d3f744303fd9d7b7f55b20e72784666244212
4
+ data.tar.gz: 6d2ae9d784b5edfe75cc8ec98d16248d4bc25865
5
5
  SHA512:
6
- metadata.gz: 17072d5b04fcc86e4d624f78134c3c880a236a925b9a512facde7473980518fd12b32ff88f192dcb24679676ab81082177b3c57d627e69c890097d81ea1b64b9
7
- data.tar.gz: b01bce920812e436dd967a840884f49141082f9b02993cf114e440c2a8f9651e7919fc5f7cd0c815251eb298a07603169d4224ef71780f1eb26822117991417e
6
+ metadata.gz: 7c1bb24701d466f85842e7b1817e79da4f7160ac529bc3924d271224a4eb95a848f4080cce6c525b72eeb3dfe7047b845030748ec0e18ec04276bc465988456f
7
+ data.tar.gz: b45f5ffe32720ace837275e8f6b8b794454faa31d9bc4e6cbcda2af47e1e01e05f184906f7628931f7b5d7aeb715d152ed7f4208960262f99d325cf51948d142
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- capistrano-supervisor (0.1.0)
4
+ capistrano-supervisor (1.0.0)
5
5
  capistrano (>= 3.0.0)
6
6
 
7
7
  GEM
@@ -11,11 +11,11 @@ GEM
11
11
  i18n
12
12
  rake (>= 10.0.0)
13
13
  sshkit (~> 1.3)
14
- colorize (0.7.4)
14
+ colorize (0.7.7)
15
15
  i18n (0.7.0)
16
16
  net-scp (1.2.1)
17
17
  net-ssh (>= 2.6.5)
18
- net-ssh (2.9.2)
18
+ net-ssh (3.0.1)
19
19
  rake (10.4.2)
20
20
  sshkit (1.7.1)
21
21
  colorize (>= 0.7.0)
data/README.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  supervisord support for Capistrano 3.x
4
4
 
5
+ Makes it possible to reload/restart supervisord during deploy
6
+
5
7
  ## Installation
6
8
 
7
9
  Add this line to your application's Gemfile:
@@ -27,13 +29,20 @@ Require in Capfile to use the default task:
27
29
  require 'capistrano/supervisor'
28
30
  ```
29
31
 
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:reload`
32
+ Configure in deploy.rb to execute one of the tasks:
33
+
34
+ ```ruby
35
+ after 'deploy:published', 'supervisord:reload'
36
+ after 'deploy:published', 'supervisord:restart'
37
+ ```
38
+
39
+ You can also run it in isolation: `cap production supervisord:reload` or `cap production supervisord:restart`
32
40
 
33
- ### Configurable options:
41
+ Configurable options:
34
42
 
35
43
  ```ruby
36
- set :supervisord_reload_roles, :app
44
+ set :supervisord_reload_roles, :app
45
+ set :supervisord_restart_roles, :app
37
46
  ```
38
47
 
39
48
  ## 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.2.0'
7
+ spec.version = '1.0.0'
8
8
  spec.authors = ["Emil Kilhage"]
9
9
  spec.email = ["emil.kilhage@glooby.com"]
10
10
 
@@ -5,12 +5,17 @@ namespace :supervisord do
5
5
  execute "supervisorctl reload"
6
6
  end
7
7
  end
8
-
9
- after 'deploy:published', 'supervisord:reload'
8
+ desc 'Restarts supervisord'
9
+ task :restart do
10
+ on roles fetch(:supervisord_restart_roles) do
11
+ execute "supervisorctl restart"
12
+ end
13
+ end
10
14
  end
11
15
 
12
16
  namespace :load do
13
17
  task :defaults do
14
18
  set :supervisord_reload_roles, :app
19
+ set :supervisord_restart_roles, :app
15
20
  end
16
21
  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.2.0
4
+ version: 1.0.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-09-09 00:00:00.000000000 Z
11
+ date: 2015-10-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano