Created
March 12, 2013 22:26
-
-
Save srockstyle/5147666 to your computer and use it in GitHub Desktop.
RailsのWhenneverでつかうschedule.rbのひな形。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 3時間ごと | |
every 3.hours do | |
runner "Task::sample.exec" | |
end | |
## 4:30に実行 | |
every :monday, :at => '4:30 am' do | |
runner "Task::sample.exec" | |
end | |
## unix cron type | |
every '0 0 * * *' do | |
runner "Task::sample.exec" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment