Sha256: 114c8e093120a297c03cf4a2916a7d9cea52660cc31a28e4a5fbede6fde9c512

Contents?: true

Size: 711 Bytes

Versions: 14

Compression:

Stored size: 711 Bytes

Contents

<%
  @read_cmd = 'crontab -l'
  @write_cmd = 'crontab -'

%>

# cron clears out environment variables, but Rubber.root/script/rubber uses
# "rvm do default" to run, so no longer any need to setup ruby env vars here,
# all we need is PATH
PATH=<%= ENV['PATH'] %>

MAILTO=<%= rubber_env.admin_email %>
# don't need to set RUBBER_ENV for each script since we set it for all cron here
RUBBER_ENV=<%= Rubber.env %>
RAILS_ENV=<%= Rubber.env %>

# Roll all rails logs at midnight
0 0 * * * <%= Rubber.root %>/script/rubber cron --task util:rotate_logs --directory=<%= Rubber.root %>/log

# Automatically set the clock for all machines
<%= rand(60) %> 4 * * * <%= Rubber.root %>/script/rubber cron ntpdate pool.ntp.org

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
rubber-2.0.1 templates/base/config/rubber/common/crontab
rubber-2.0.0 templates/base/config/rubber/common/crontab
rubber-2.0.0.pre12 templates/base/config/rubber/common/crontab
rubber-2.0.0.pre11 templates/base/config/rubber/common/crontab
rubber-2.0.0.pre10 templates/base/config/rubber/common/crontab
rubber-2.0.0.pre9 templates/base/config/rubber/common/crontab
rubber-2.0.0.pre8 templates/base/config/rubber/common/crontab
rubber-2.0.0.pre7 templates/base/config/rubber/common/crontab
rubber-2.0.0.pre6 templates/base/config/rubber/common/crontab
rubber-2.0.0.pre5 templates/base/config/rubber/common/crontab
rubber-2.0.0.pre4 templates/base/config/rubber/common/crontab
rubber-2.0.0.pre3 templates/base/config/rubber/common/crontab
rubber-2.0.0.pre2 templates/base/config/rubber/common/crontab
rubber-2.0.0.pre1 templates/base/config/rubber/common/crontab