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 (
commit f29ec0b7850bc62760981f9aba5677784641e5b0
tree a38c5db3602c4c975eddc13170ed8730ee81fecd
parent 49375fe99943497ba00f79509fff3323362a8935
tree a38c5db3602c4c975eddc13170ed8730ee81fecd
parent 49375fe99943497ba00f79509fff3323362a8935
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








