Sha256: cb392f486a570635a87c7e83ff41594a632402e67533b3d5ea75fdd75aaf380e

Contents?: true

Size: 406 Bytes

Versions: 2

Compression:

Stored size: 406 Bytes

Contents

# 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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
crono-0.6.1 examples/cronotab.rb
crono-0.5.2 examples/cronotab.rb