mirror of
https://github.com/plashchynski/crono.git
synced 2026-04-24 17:58:39 +02:00
Simplify text in examples
This commit is contained in:
@@ -1,15 +1,15 @@
|
|||||||
# cronotab.rb — Crono configuration example file
|
# cronotab.rb — Crono configuration file
|
||||||
#
|
#
|
||||||
# Here you can specify periodic jobs and their schedule.
|
# Here you can specify periodic jobs and schedule.
|
||||||
# You can specify a periodic job as a ActiveJob class in `app/jobs/`
|
# You can use ActiveJob's jobs from `app/jobs/`
|
||||||
# Actually you can use any class. The only requirement is that
|
# You can use any class. The only requirement is that
|
||||||
# the class should implement a method `perform` without arguments.
|
# class should have a method `perform` without arguments.
|
||||||
#
|
#
|
||||||
|
|
||||||
class TestJob
|
class TestJob
|
||||||
def perform
|
def perform
|
||||||
puts "Test!"
|
puts "Test!"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
Crono.perform(TestJob).every 5.second
|
Crono.perform(TestJob).every 2.days, at: "15:30"
|
||||||
|
|
||||||
|
|||||||
@@ -1,9 +1,15 @@
|
|||||||
# cronotab.rb — Crono configuration file
|
# cronotab.rb — Crono configuration file
|
||||||
#
|
#
|
||||||
# Here you can specify periodic jobs and their schedule.
|
# Here you can specify periodic jobs and schedule.
|
||||||
# You can specify a periodic job as a ActiveJob class in `app/jobs/`
|
# You can use ActiveJob's jobs from `app/jobs/`
|
||||||
# Actually you can use any class. The only requirement is that
|
# You can use any class. The only requirement is that
|
||||||
# the class should implement a method `perform` without arguments.
|
# 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"
|
# Crono.perform(TestJob).every 2.days, at: "15:30"
|
||||||
#
|
#
|
||||||
|
|||||||
Reference in New Issue
Block a user