README.rdoc in rufus-scheduler-2.0.1 vs README.rdoc in rufus-scheduler-2.0.2
- old
+ new
@@ -40,20 +40,16 @@
scheduler.at 'Thu Mar 26 07:31:43 +0900 2009' do
puts 'order pizza'
end
scheduler.cron '0 22 * * 1-5' do
- # every day of the week at 00:22
+ # every day of the week at 22:00 (10pm)
puts 'activate security system'
end
scheduler.every '5m' do
puts 'check blood pressure'
end
-
- # ...
-
- scheduler.stop
This code summons a plain version of the scheduler, this can be made more explicit via :
scheduler = Rufus::Scheduler::PlainScheduler.start_new