Module: Capistrano::Helpers::DelayedJob::Runit
- Defined in:
- lib/capistrano/helpers/delayed_job/runit.rb
Overview
Module Monit provides helpers for Monit/Puma combination
Class Method Summary collapse
- .available_configuration_file(worker_number) ⇒ Object
- .available_configuration_with_path(worker_number) ⇒ Object
- .delayed_job_log_path(worker_number) ⇒ Object
- .delayed_job_runit_service_name(worker_number) ⇒ Object
Class Method Details
.available_configuration_file(worker_number) ⇒ Object
22 23 24 |
# File 'lib/capistrano/helpers/delayed_job/runit.rb', line 22 def available_configuration_file(worker_number) "#{fetch(:delayed_job_runit_service_name)}_#{worker_number}.conf" end |
.available_configuration_with_path(worker_number) ⇒ Object
18 19 20 |
# File 'lib/capistrano/helpers/delayed_job/runit.rb', line 18 def available_configuration_with_path(worker_number) File.join(fetch(:monit_available_path), "#{fetch(:delayed_job_runit_service_name)}_#{worker_number}.conf") end |
.delayed_job_log_path(worker_number) ⇒ Object
14 15 16 |
# File 'lib/capistrano/helpers/delayed_job/runit.rb', line 14 def delayed_job_log_path(worker_number) runit_var_log_service_single_service_path(delayed_job_runit_service_name(worker_number)) end |
.delayed_job_runit_service_name(worker_number) ⇒ Object
10 11 12 |
# File 'lib/capistrano/helpers/delayed_job/runit.rb', line 10 def delayed_job_runit_service_name(worker_number) "#{fetch(:delayed_job_runit_base_service_name)}_#{worker_number}" end |