module Clockwork::Methods

Public Instance Methods

clear!() click to toggle source
# File lib/clockwork.rb, line 49
def clear!
  Clockwork.manager = Manager.new
end
configure(&block) click to toggle source
# File lib/clockwork.rb, line 25
def configure(&block)
  Clockwork.manager.configure(&block)
end
error_handler(&block) click to toggle source
# File lib/clockwork.rb, line 33
def error_handler(&block)
  Clockwork.manager.error_handler(&block)
end
every(period, job, options={}, &block) click to toggle source
# File lib/clockwork.rb, line 41
def every(period, job, options={}, &block)
  Clockwork.manager.every(period, job, options, &block)
end
handler(&block) click to toggle source
# File lib/clockwork.rb, line 29
def handler(&block)
  Clockwork.manager.handler(&block)
end
on(event, options={}, &block) click to toggle source
# File lib/clockwork.rb, line 37
def on(event, options={}, &block)
  Clockwork.manager.on(event, options, &block)
end
run() click to toggle source
# File lib/clockwork.rb, line 45
def run
  Clockwork.manager.run
end
sync_database_tasks(options={}, &block) click to toggle source
# File lib/clockwork/manager_with_database_tasks.rb, line 13
def sync_database_tasks(options={}, &block)
  Clockwork.manager.sync_database_tasks(options, &block)
end