module Procrastinator

Top-level module for the Procrastinator Gem.

Call Procrastinator.setup with a block to configure task queues.

See README for details.

@author Robin Miller

@see github.com/TenjinInc/procrastinator

Constants

VERSION

Version number of this release

Public Class Methods

setup(&block) click to toggle source

Creates a configuration object and passes it into the given block.

@yield the created configuration object @return [Scheduler] a scheduler object that can be used to interact with the queues

# File lib/procrastinator.rb, line 31
def self.setup(&block)
   raise ArgumentError, 'Procrastinator.setup must be given a block' unless block

   config = Config.new(&block)

   Scheduler.new(config)
end