Files
crono/examples/cronotab.rb
Dzmitry Plashchynski 828488a6bc Add Job class
2015-03-04 18:31:59 +02:00

16 lines
406 B
Ruby

# cronotab.rb — Crono configuration example file
#
# Here you can specify periodic jobs and their schedule.
# You can specify a periodic job as a ActiveJob class in `app/jobs/`
# Actually you can use any class. The only requirement is that
# the class should implement a method `perform` without arguments.
#
class TestJob
def perform
puts "Test!"
end
end
Crono.perform(TestJob).every 5.second