Can I use Whenever to run scheduled tasks (cron jobs) on Enclave?

The best way to use Whenever with Enclave is to use Whenever to generate a crontab, then execute that crontab using Supercronic

To do so, add the whenever gem to your Gemfile, then add a config/schedule.rb file to your app repository.

Here is an example config/schedule.rb that schedules bundle exec rake db:awesome to run every day at 2 AM:

every, at: '2:00 am' do
  command 'bundle exec rake db:awesome'

Finally, follow the instructions under How do I run scheduled tasks (cron jobs) on Enclave?, except that instead of writing the crontab and copying it to your image, you should use whenever to generate it:

RUN whenever > /app/crontab