added :whenever_environment to cap task for easier multistage support

This commit is contained in:
Javan Makhmali 2011-03-06 16:39:52 -05:00
parent 4b98f064eb
commit 6b69ebd10f

View File

@ -3,7 +3,8 @@ Capistrano::Configuration.instance(:must_exist).load do
_cset(:whenever_roles) { :db } _cset(:whenever_roles) { :db }
_cset(:whenever_command) { "whenever" } _cset(:whenever_command) { "whenever" }
_cset(:whenever_identifier) { application } _cset(:whenever_identifier) { application }
_cset(:whenever_update_flags) { "--update-crontab #{whenever_identifier}" } _cset(:whenever_environment) { "production" }
_cset(:whenever_update_flags) { "--update-crontab #{whenever_identifier} --set environment=#{whenever_environment}" }
_cset(:whenever_clear_flags) { "--clear-crontab #{whenever_identifier}" } _cset(:whenever_clear_flags) { "--clear-crontab #{whenever_identifier}" }
# Disable cron jobs at the begining of a deploy. # Disable cron jobs at the begining of a deploy.