Sha256: fcfbbf423dc228512540f013e34098159bb5d5a3da787be19c054d4e4f8635b8

Contents?: true

Size: 361 Bytes

Versions: 17

Compression:

Stored size: 361 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

17 entries across 17 versions & 1 rubygems

Version Path
crono-1.1.2 examples/cronotab.rb
crono-1.1.1 examples/cronotab.rb
crono-1.1.0 examples/cronotab.rb
crono-1.0.3 examples/cronotab.rb
crono-1.0.2 examples/cronotab.rb
crono-1.0.1 examples/cronotab.rb
crono-1.0.0 examples/cronotab.rb
crono-1.0.0.pre3 examples/cronotab.rb
crono-1.0.0.pre2 examples/cronotab.rb
crono-0.9.0 examples/cronotab.rb
crono-0.8.9 examples/cronotab.rb
crono-0.8.9.pre examples/cronotab.rb
crono-0.8.8.pre examples/cronotab.rb
crono-0.8.7.pre examples/cronotab.rb
crono-0.8.6.pre examples/cronotab.rb
crono-0.8.1 examples/cronotab.rb
crono-0.8.0 examples/cronotab.rb