Simplify text in examples

This commit is contained in:
Dzmitry Plashchynski
2015-03-07 03:49:29 +02:00
parent 186fe43fc0
commit 84717493a8
2 changed files with 17 additions and 11 deletions

View File

@@ -1,15 +1,15 @@
# cronotab.rb — Crono configuration example file
# cronotab.rb — Crono configuration 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.
# Here you can specify periodic jobs and schedule.
# You can use ActiveJob's jobs from `app/jobs/`
# You can use any class. The only requirement is that
# class should have a method `perform` without arguments.
#
class TestJob
def perform
puts "Test!"
end
end
Crono.perform(TestJob).every 5.second
Crono.perform(TestJob).every 2.days, at: "15:30"

View File

@@ -1,9 +1,15 @@
# cronotab.rb — Crono configuration 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.
# Here you can specify periodic jobs and schedule.
# You can use ActiveJob's jobs from `app/jobs/`
# You can use any class. The only requirement is that
# class should have a method `perform` without arguments.
#
# class TestJob
# def perform
# puts "Test!"
# end
# end
#
# Crono.perform(TestJob).every 2.days, at: "15:30"
#