Sha256: 5a5755fa8eb5a70b1209db716f971130292953efd27baf37d09fb0a88e2c2211
Contents?: true
Size: 750 Bytes
Versions: 10
Compression:
Stored size: 750 Bytes
Contents
module Capistrano module Helpers module DelayedJob ## # Module Monit provides helpers for Monit/Puma combination ## module Runit module_function def service_name(worker_number) "#{fetch(:delayed_job_runit_base_service_name)}_#{worker_number}" end def log_path(worker_number) runit_var_log_service_single_service_path(service_name(worker_number)) end def available_configuration_with_path(worker_number) File.join(fetch(:monit_available_path), "#{service_name(worker_number)}.conf") end def available_configuration_file(worker_number) "#{service_name(worker_number)}.conf" end end end end end
Version data entries
10 entries across 10 versions & 1 rubygems