javan/whenever — pull request #191 by spagalloco (2011-10-27 03:25:03+00:00)
Title: added whenever_variables as a configuration variable

I recently needed to set an additional variable via a cap task and found that the only way to do so was to override `whenever_update_flags` like so:

set :whenever_update_flags, defer { "--update-crontab #{fetch :whenever_identifier} --set 'environment=#{fetch :whenever_environment}&log_path=#{shared_path}'" }

This is a minor backwards change that allows you to set the environment + variables independently:

set :whenever_variables, defer { "'environment=#{fetch :whenever_environment}&log_path=#{shared_path}'" }