This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
Pedro Belo (author)
Sun Sep 21 14:24:07 -0700 2008
README
= Sheep Cron
== DESCRIPTION:
Sheep Cron, to be confused with "Cheap Cron", is a poor man's cron. It's a pure Ruby alternative for:
* Times when cron is not available
* People that hates the cron syntax
* Fun and profit
== USAGE:
Scheduling jobs:
SheepCron do |job|
job.schedule :every => 1.day, :at => '12:00'
job.run lambda { Sheep.graze }
end
# a little more complete job featuring name and exceptions
SheepCron do |job|
job.name 'Work'
job.schedule :every => 1.day, :at => '9am', :except => { |t| t.saturday? || t.sunday? }
job.run lambda { Sheep.work }
end
# jobs can have multiple schedules too
SheepCron do |job|
job.schedule :every => 1.week, :at => 'friday, 9pm'
job.schedule :every => 1.year, :at => '25/12'
job.run lambda { Sheep.party! }
end
== CONFIGURATION:
SheepCron.configure do |jobs|
jobs.timeout 60.seconds
end
== INSTALL:
gem install sheep_cron
== I CAN HAS PATCHES?:
* Cron "bridge": accept a crontab to define schedules
* Schedule storage backend








