lib/capistrano/delayed_job/config.rb in capistrano-delayed_job-0.0.3 vs lib/capistrano/delayed_job/config.rb in capistrano-delayed_job-0.0.4

- old
+ new

@@ -8,11 +8,17 @@ _cset :delayed_job_pid_file, defer {Capistrano::RunitBase::service_pid(fetch(:delayed_job_runit_service_name))} # Logging to path _cset :delayed_job_log_path, defer {"/var/log/service/#{fetch(:user)}/#{fetch(:application)}_#{Capistrano::BaseHelper.environment}/delayed_job"} - # runit paths - _cset :delayed_job_runit_local_config, File.join(File.expand_path(File.join(File.dirname(__FILE__),"../../../templates", "runit", )), "run.erb") + # runit defaults + _cset :delayed_job_restart_interval, defer {fetch(:runit_restart_interval)} + _cset :delayed_job_restart_count, defer {fetch(:runit_restart_count)} + _cset :delayed_job_autorestart_clear_interval, defer {fetch(:runit_autorestart_clear_interval)} + + # runit paths + _cset :delayed_job_runit_local_run, File.join(File.expand_path(File.join(File.dirname(__FILE__),"../../../templates", "runit", )), "run.erb") + _cset :delayed_job_runit_local_finish, File.join(File.expand_path(File.join(File.dirname(__FILE__),"../../../templates", "runit", )), "finish.erb") _cset :delayed_job_runit_control_q, File.join(File.expand_path(File.join(File.dirname(__FILE__),"../../../templates", "runit")), "control-q.erb") _cset :delayed_job_runit_local_log_run, File.join(File.expand_path(File.join(File.dirname(__FILE__),"../../../templates", "runit")), "log-run.erb") # monit configuration _cset :delayed_job_monit_service_name, defer { "#{fetch(:user)}_#{fetch(:application)}_#{Capistrano::BaseHelper.environment}_delayed_job" } \ No newline at end of file