Skip to content

ingoweiss/scheduler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

= 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

About

Easy way to manage scheduled execution of rake tasks

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages