Sha256: 069171297ca5c127fdd6d5135789b95df09a29f51fe713bd91de6111b8ad2451

Contents?: true

Size: 364 Bytes

Versions: 1

Compression:

Stored size: 364 Bytes

Contents

# cronotab.rb — Crono configuration file
#
# 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"

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
crono-0.7.0 examples/cronotab.rb