Sha256: 42fa29bd71217bf5ff66d4a73b64e3281ad27495a5e70e183e8407ec79e68d4c

Contents?: true

Size: 764 Bytes

Versions: 24

Compression:

Stored size: 764 Bytes

Contents

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

# cron clears out enviroment variables, so we need to add these in
# to make sure we are running the correct ruby (rvm env vars, plus paths)
<%- ENV.select {|k, v| k =~ /rvm|ruby|bundler|gem|path/i }.each do |k, v| -%>
<%= k %>=<%= v %>
<%- end -%>

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 %>
RUBYOPT=rubygems

# Roll all rails logs at midnight
0 0 * * * LOG_DIR=<%= RUBBER_ROOT %>/log <%= RUBBER_ROOT %>/script/cron-rake rubber:rotate_logs

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

Version data entries

24 entries across 12 versions & 4 rubygems

Version Path
axtro-rubber-1.5.7.1 generators/vulcanize/templates/base/config/rubber/common/crontab
axtro-rubber-1.5.7.1 lib/generators/vulcanize/templates/base/config/rubber/common/crontab
axtro-rubber-1.5.7 generators/vulcanize/templates/base/config/rubber/common/crontab
axtro-rubber-1.5.7 lib/generators/vulcanize/templates/base/config/rubber/common/crontab
rubber-1.5.7 lib/generators/vulcanize/templates/base/config/rubber/common/crontab
rubber-1.5.7 generators/vulcanize/templates/base/config/rubber/common/crontab
rubber-1.5.6 lib/generators/vulcanize/templates/base/config/rubber/common/crontab
rubber-1.5.6 generators/vulcanize/templates/base/config/rubber/common/crontab
sml-rubber-1.5.5 lib/generators/vulcanize/templates/base/config/rubber/common/crontab
sml-rubber-1.5.5 generators/vulcanize/templates/base/config/rubber/common/crontab
rubber-1.5.5 generators/vulcanize/templates/base/config/rubber/common/crontab
rubber-1.5.5 lib/generators/vulcanize/templates/base/config/rubber/common/crontab
rubber-1.5.4 generators/vulcanize/templates/base/config/rubber/common/crontab
rubber-1.5.4 lib/generators/vulcanize/templates/base/config/rubber/common/crontab
rubber-1.5.3 lib/generators/vulcanize/templates/base/config/rubber/common/crontab
rubber-1.5.3 generators/vulcanize/templates/base/config/rubber/common/crontab
rubber-1.5.2 lib/generators/vulcanize/templates/base/config/rubber/common/crontab
rubber-1.5.2 generators/vulcanize/templates/base/config/rubber/common/crontab
rubber-1.5.1 lib/generators/vulcanize/templates/base/config/rubber/common/crontab
rubber-1.5.1 generators/vulcanize/templates/base/config/rubber/common/crontab