Sha256: 1d6a01707f4f819d8882b381806d1325ffa8f1edb1756c10d3e2543b8be4ae2a

Contents?: true

Size: 937 Bytes

Versions: 11

Compression:

Stored size: 937 Bytes

Contents

# Use this file to easily define all of your cron jobs.
#
# It's helpful, but not entirely necessary to understand cron before proceeding.
# http://en.wikipedia.org/wiki/Cron

# Example:
#
# set :output, "/path/to/my/cron_log.log"
#
# every 2.hours do
#   command "/usr/bin/some_great_command"
#   runner "MyModel.some_method"
#   rake "some:great:rake:task"
# end
#
# every 4.days do
#   runner "AnotherModel.prune_old_records"
# end

# Learn more: http://github.com/javan/whenever

# pass the path to the script
env :PATH, ENV['PATH']

# base path to this release
base_path = File.expand_path(File.dirname(__FILE__))+"/../../../current"

# log files
set :output, {:error => base_path+'/log/cron_error.log', :standard => base_path+'/log/cron.log'}

# actual jobs
every 1.day, :at => '11 pm' do
  command "cd #{base_path} && export to=#{@environment} && bundle exec astrails-safe .bonethug/backup.rb"
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
bonethug-0.0.21 config/schedule.rb
bonethug-0.0.20 config/schedule.rb
bonethug-0.0.18 config/schedule.rb
bonethug-0.0.17 config/schedule.rb
bonethug-0.0.16 config/schedule.rb
bonethug-0.0.15 config/schedule.rb
bonethug-0.0.14 config/schedule.rb
bonethug-0.0.13 config/schedule.rb
bonethug-0.0.12 config/schedule.rb
bonethug-0.0.11 config/schedule.rb
bonethug-0.0.10 config/schedule.rb