Sha256: 5eddc1ee394e6687f2c4904ea277d061c0e19f200a13d8c82a5931d54328dd5c

Contents?: true

Size: 1.55 KB

Versions: 8

Compression:

Stored size: 1.55 KB

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 config/backup.rb"
end

# every 15.minutes do
#   command "php #{base_path}/public/framework/cli-script.php /QuarterlyHourlyTask"
# end

# every 1.hour do
#   command "php #{base_path}/public/framework/cli-script.php /HourlyTask"
# end

# every 1.day :at => '2am'.minutes do
#   command "php #{base_path}/public/framework/cli-script.php /DailyTask"
# end

# every 1.week do
#   command "php #{base_path}/public/framework/cli-script.php /WeeklyTask"
# end

# every 1.month do
#   command "php #{base_path}/public/framework/cli-script.php /MonthlyTask"
# end

# every 1.year do
#   command "php #{base_path}/public/framework/cli-script.php YearlyTask"
# end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
bonethug-0.0.17 skel/project_types/silverstripe3/config/example/schedule.rb
bonethug-0.0.16 skel/project_types/silverstripe3/config/example/schedule.rb
bonethug-0.0.15 skel/project_types/silverstripe3/config/example/schedule.rb
bonethug-0.0.14 skel/project_types/silverstripe3/config/example/schedule.rb
bonethug-0.0.13 skel/project_types/silverstripe3/config/example/schedule.rb
bonethug-0.0.12 skel/project_types/silverstripe3/config/example/schedule.rb
bonethug-0.0.11 skel/project_types/silverstripe3/config/example/schedule.rb
bonethug-0.0.10 skel/project_types/silverstripe3/config/example/schedule.rb