ingoweiss / scheduler

Easy way to manage scheduled execution of rake tasks

This URL has Read+Write access

README
= Scheduler 0.0.0

Easy scheduling of recurring tasks for ruby projects

Example:

  Scheduler::Cron::Configuration.configure do |cron|
    cron.run('do:some:stuff').from(RAILS_ROOT).at_hour(1).at_minute(1)
    cron.run('do:more:stuff').from(RAILS_ROOT).on_day_of_week(:mon, :wed).at_hour(5).at_minute(1)
  end
  
  Scheduler::Cron::Configuration.write
  Scheduler::Cron::Configuration.install

The above will result in the following crontab file being installed:

  1 1 * * * cd /path/to/project;`which rake` do:some:stuff
  1 5 * * 1,3 cd /path/to/project;`which rake` do:more:stuff

Scheduler is in an early experimental stage and not yet intended for production use. Please contact me if you have 
suggestions!

Copyright (c) 2009 Ingo Weiss, released under the MIT license