capistrano3-puma 0.9.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: a679889b02439d9d7f8f47a715cd9159a941c292
4
- data.tar.gz: 3433bd1dd4baad82ea8faa9c6e359d6b75e95e78
3
+ metadata.gz: 1abd86de25bfabf43b77b3968938ac1cf4f3791c
4
+ data.tar.gz: 4b944a60a84f810899c2d2aa51f688923bcc8e3a
5
5
  SHA512:
6
- metadata.gz: 6d86063f615d26cb1b20163277a16431ef6158fbaa0c3b31e2049a0b4603543f994f9bc77d6ce260cb29fd9b3457633111abd25bee79dd49bf0688e42fb5b869
7
- data.tar.gz: a4e1c85f04fc1552e20d794e627edf6cb5f197f9dfa3294c09d31b5316c86614851f2e9aa7ca8534545dd53fee12d70ee3643e7cfe4c043040c6939d00c901c8
6
+ metadata.gz: 502c4c5c598ce04f6dd5ba94baef6977f77db7535af5109190125ba040c9332dabfdab88a32ed3ab17a032f84a532cd451a618665b89f83907d98dfecad1aae5
7
+ data.tar.gz: 714afaa7aa7bdbeb47e83ebf3c456e1147c5fc6beb2fe4aed0aa1493f24bb7f5c081272249196c61c4078112a301e81de5606b1eb44070f14f80f0528c58fc49
data/README.md CHANGED
@@ -58,6 +58,7 @@ Configurable options, shown here with defaults: Please note the configuration op
58
58
  set :puma_state, "#{shared_path}/tmp/pids/puma.state"
59
59
  set :puma_pid, "#{shared_path}/tmp/pids/puma.pid"
60
60
  set :puma_bind, "unix://#{shared_path}/tmp/sockets/puma.sock" #accept array for multi-bind
61
+ set :puma_default_control_app, "unix://#{shared_path}/tmp/sockets/pumactl.sock"
61
62
  set :puma_conf, "#{shared_path}/puma.rb"
62
63
  set :puma_access_log, "#{shared_path}/log/puma_access.log"
63
64
  set :puma_error_log, "#{shared_path}/log/puma_error.log"
@@ -93,6 +94,7 @@ Ensure that the following directories are shared (via ``linked_dirs``):
93
94
  tmp/pids tmp/sockets log
94
95
 
95
96
  ## Changelog
97
+ - 1.0.0: Add activate control app @askagirl
96
98
  - 0.8.5: Fix smart_restart task to check if puma preloads app
97
99
  - 0.8.4: Allow patch method (Nginx template) @lonre
98
100
  - 0.8.2: Start task creates a conf file if none exists @stevemadere
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module Puma
3
- VERSION = '0.9.0'
3
+ VERSION = '1.0.0'
4
4
  end
5
5
  end
@@ -12,6 +12,7 @@ namespace :load do
12
12
  set :puma_state, -> { File.join(shared_path, 'tmp', 'pids', 'puma.state') }
13
13
  set :puma_pid, -> { File.join(shared_path, 'tmp', 'pids', 'puma.pid') }
14
14
  set :puma_bind, -> { File.join("unix://#{shared_path}", 'tmp', 'sockets', 'puma.sock') }
15
+ set :puma_default_control_app, -> { File.join("unix://#{shared_path}", 'tmp', 'sockets', 'pumactl.sock') }
15
16
  set :puma_conf, -> { File.join(shared_path, 'puma.rb') }
16
17
  set :puma_access_log, -> { File.join(shared_path, 'log', 'puma_access.log') }
17
18
  set :puma_error_log, -> { File.join(shared_path, 'log', 'puma_error.log') }
@@ -14,6 +14,9 @@ stdout_redirect '<%=fetch(:puma_access_log)%>', '<%=fetch(:puma_error_log)%>', t
14
14
  threads <%=fetch(:puma_threads).join(',')%>
15
15
 
16
16
  <%= puma_bind %>
17
+ <% if fetch(:puma_control_app) %>
18
+ activate_control_app "<%= fetch(:puma_default_control_app) %>"
19
+ <% end %>
17
20
  workers <%= puma_workers %>
18
21
  <% if fetch(:puma_worker_timeout) %>
19
22
  worker_timeout <%= fetch(:puma_worker_timeout).to_i %>
@@ -27,7 +30,7 @@ on_restart do
27
30
  ENV["BUNDLE_GEMFILE"] = "<%= fetch(:bundle_gemfile, "#{current_path}/Gemfile") %>"
28
31
  end
29
32
  <% else %>
30
- prune_bundle
33
+ prune_bundler
31
34
  <% end %>
32
35
 
33
36
  <% if fetch(:puma_init_active_record) %>
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.9.0
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Abdelkader Boudih
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-20 00:00:00.000000000 Z
11
+ date: 2015-05-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano