lib/qpush/server/perform.rb in qpush-0.1.2 vs lib/qpush/server/perform.rb in qpush-0.1.4
- old
+ new
@@ -4,18 +4,18 @@
# It will perform a 'blocking pop' on our job list until one is added.
#
class Perform
def initialize
@done = false
- @lists = QPush.config.perform_lists
+ @lists = QPush.keys.perform_lists
end
# Starts our perform process. This will run until instructed to stop.
#
def start
until @done
job = retrieve_job
- job.api.execute if job
+ job.execute if job
end
end
# Shutsdown our perform process.
#