lib/capistrano/dsl/delayed_job_paths.rb in capistrano-delayed-job-1.0.1 vs lib/capistrano/dsl/delayed_job_paths.rb in capistrano-delayed-job-1.1.0
- old
+ new
@@ -4,9 +4,15 @@
def delayed_job_initd_file
"/etc/init.d/#{fetch(:delayed_job_service)}"
end
+ # install the delayed_job monit configuration in the conf.d directory, where it will
+ # automaticaly be picked up by monit
+ def delayed_job_monitrc_file
+ "/etc/monit/conf.d/#{fetch(:delayed_job_service)}.monitrc"
+ end
+
def current_path
deploy_path.join('current')
end
end