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
Class Method Details
.clear ⇒ Object
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) = {:time => Time.now, :priority => 0} .merge! args.pop if args.last.is_a? Hash run_scheduled_workers([:time]) run_queued([:priority]) end |