Module: IronCuke

Extended by:
Queue, ScheduledQueue
Defined in:
lib/iron_cuke.rb,
lib/iron_cuke/queue.rb,
lib/iron_cuke/version.rb,
lib/iron_cuke/queue_item.rb,
lib/iron_cuke/scheduled_queue.rb

Defined Under Namespace

Modules: Queue, ScheduledQueue Classes: QueueItem

Constant Summary collapse

VERSION =
"0.0.5"

Class Method Summary collapse

Methods included from ScheduledQueue

cancel_schedule, clear_schedules, schedule, schedules

Methods included from Queue

clear_queue, queue, queued

Class Method Details

.clearObject



20
21
22
23
# File 'lib/iron_cuke.rb', line 20

def clear
	clear_queue
	clear_schedules
end

.run(*args) ⇒ Object



13
14
15
16
17
18
# File 'lib/iron_cuke.rb', line 13

def run(*args)
	options = {:time => Time.now, :priority => 0}
	options.merge! args.pop if args.last.is_a? Hash
	run_scheduled_workers(options[:time])
	run_queued(options[:priority])
end