capistrano3-puma 0.6.0 → 0.6.1

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: 6eb1f47c6b33ef2ce0b2eb525a419d404592bf71
4
- data.tar.gz: f83553ccc0af1fd138d47bd0d5842e2ca513e74e
3
+ metadata.gz: 9f4e2a7e6da79b8288ad61281abffe71ac11d158
4
+ data.tar.gz: 6f5d84214b223319ab8f28e67daec049885cf1a6
5
5
  SHA512:
6
- metadata.gz: b8bf1eb3e4dfe05f5397ec3ed4a383c0bfbd043417b957180bab10874052d10d900379bf8c6d85d340fc4f9b4e859c3a40efc7ed80bc2d9bd50a42d62759edf3
7
- data.tar.gz: 602506a6bb39b3de0870c81bcd708376e730db78774b3a30a78e7e9cf0f27ab8294096ff06214f615f8a151c897f66609f5a9e7df52579bbad81b97fc2008f99
6
+ metadata.gz: 3bf87fa33238e2c581f6ae1c736e93fc7c5e6ccb419863f7bb778a4d8d1db1eccc82308e1fe0b93a9e44b45ab121a60ac5375fa61df2190a51023206b3123b15
7
+ data.tar.gz: b7084811e7f7193286bf28579f50db5ba91e0c49ce7c3c6c8cc12c4f3114ac6a29f3d7073b1efd2addc01b7d35250adb53b1b978e0d80d13474bd6e918b187c4
data/README.md CHANGED
@@ -67,6 +67,7 @@ Ensure that the following directories are shared (via ``linked_dirs``):
67
67
  tmp/pids tmp/sockets log
68
68
 
69
69
  ## Changelog
70
+ - 0.6.1: added :puma_default_hooks, you can turn off the automatic hooks by setting it false
70
71
  - 0.6.0: Remove `daemonize true` from default puma.rb file. Explicitly pass `--daemon` flag when needed.
71
72
  - 0.5.1: Added worker_timeout option
72
73
  - 0.5.0: Bugs fixes
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module Puma
3
- VERSION = '0.6.0'
3
+ VERSION = '0.6.1'
4
4
  end
5
5
  end
@@ -1,5 +1,6 @@
1
1
  namespace :load do
2
2
  task :defaults do
3
+ set :puma_default_hooks, -> { true }
3
4
  set :puma_role, :app
4
5
  set :puma_env, -> { fetch(:rack_env, fetch(:rails_env, fetch(:stage))) }
5
6
  # Configure "min" to be the minimum number of threads to use to answer
@@ -22,6 +23,12 @@ namespace :load do
22
23
  end
23
24
  end
24
25
 
26
+ namespace :deploy do
27
+ before :starting, :check_puma_hooks do
28
+ invoke 'puma:add_default_hooks' if fetch(:puma_default_hooks)
29
+ end
30
+ end
31
+
25
32
  namespace :puma do
26
33
 
27
34
  desc 'Setup Puma config file'
@@ -96,7 +103,7 @@ namespace :puma do
96
103
  end
97
104
  end
98
105
  end
99
- after 'deploy:check', 'puma:check'
106
+
100
107
 
101
108
  task :smart_restart do
102
109
  if puma_workers.to_i > 1
@@ -105,7 +112,7 @@ namespace :puma do
105
112
  invoke 'puma:restart'
106
113
  end
107
114
  end
108
- after 'deploy:finished', 'puma:smart_restart'
115
+
109
116
 
110
117
 
111
118
  def puma_workers
@@ -138,4 +145,9 @@ namespace :puma do
138
145
  end
139
146
  end
140
147
 
148
+ task :add_default_hooks do
149
+ after 'deploy:check', 'puma:check'
150
+ after 'deploy:finished', 'puma:smart_restart'
151
+ end
152
+
141
153
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano3-puma
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Abdelkader Boudih
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-25 00:00:00.000000000 Z
11
+ date: 2014-07-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano