capistrano-puma-simple 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 650914f5ac733277163d698a04666d4d645b063c
4
- data.tar.gz: 597cbbaac95d8df23b8228d49bd59a10bee48cdd
3
+ metadata.gz: ce0900cdafa4f42bd8837d7933626c7defb2d4ac
4
+ data.tar.gz: c32df8698f0746ff56f7408cac430ffb8fa1cb5d
5
5
  SHA512:
6
- metadata.gz: 87516c16ed5b310896f1e51b394fb2582c2ddcc99ce8772a86ebbdad9ace2113edc073707af57e1dcbc775b5b4da68b0c650672265c8cd70c3259e2e926f8724
7
- data.tar.gz: b969599b4631222c2f2d391f7138458b9d4e289cf5dca3e8039ce5b831c8d68a05865497b5a79b0c634d6f06fb38907ce67f5ab6e6e8bc307d9811451d2ac549
6
+ metadata.gz: 920d8a534075387e88a674015ec8691f9b8c0486adad5f92ee5550de3954fbef7cc12092c4c98f10a69ba03068c1e0230ce32e5b0ad4f797dee2dbae5b6d5319
7
+ data.tar.gz: 6c733cf05b3c7893ee1ff8bcbcca672273ef4b82fd45b9e4ba74105afaec702346fb575e8e5257b98a440641368357bf8ddc231bf93688e8edd53ff4a7ec29b8
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module PumaSimple
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
4
4
  end
5
5
  end
@@ -17,6 +17,8 @@ namespace :load do
17
17
  set :puma_worker_timeout, 60
18
18
  set :puma_init_active_record, false
19
19
  set :puma_preload_app, false
20
+ set :bundle_bins, fetch(:bundle_bins).to_a + %w(puma pumactl)
21
+ set :rbenv_map_bins, fetch(:rbenv_map_bins).to_a + %w(puma pumactl)
20
22
  end
21
23
  end
22
24
 
@@ -66,7 +68,7 @@ namespace :puma do
66
68
  end
67
69
  within current_path do
68
70
  with rack_env: fetch(:puma_env) do
69
- execute :bundle, :exec, :puma, "-C #{fetch(:puma_conf)} --daemon"
71
+ execute :puma, "-C #{fetch(:puma_conf)} --daemon"
70
72
  end
71
73
  end
72
74
  end
@@ -82,7 +84,7 @@ namespace :puma do
82
84
  with rack_env: fetch(:puma_env) do
83
85
  if test "[ -f #{fetch(:puma_pid)} ]"
84
86
  if test :kill, "-0 $( cat #{fetch(:puma_pid)} )"
85
- execute :bundle, :exec, :pumactl, "-S #{fetch(:puma_state)} -F #{fetch(:puma_conf)} #{command}"
87
+ execute :pumactl, "-S #{fetch(:puma_state)} -F #{fetch(:puma_conf)} #{command}"
86
88
  else
87
89
  # delete invalid pid file , process is not running.
88
90
  execute :rm, fetch(:puma_pid)
@@ -107,7 +109,7 @@ namespace :puma do
107
109
  with rack_env: fetch(:puma_env) do
108
110
  if (test "[ -f #{fetch(:puma_pid)} ]") && (test :kill, "-0 $( cat #{fetch(:puma_pid)} )")
109
111
  # NOTE pid exist but state file is nonsense, so ignore that case
110
- execute :bundle, :exec, :pumactl, "-S #{fetch(:puma_state)} -F #{fetch(:puma_conf)} #{command}"
112
+ execute :pumactl, "-S #{fetch(:puma_state)} -F #{fetch(:puma_conf)} #{command}"
111
113
  else
112
114
  # Puma is not running or state file is not present : Run it
113
115
  invoke "puma:start"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-puma-simple
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - hirocaster