bin/resque in resque_admin-1.0.4 vs bin/resque in resque_admin-1.0.5
- old
+ new
@@ -15,15 +15,15 @@
opts.separator ""
opts.separator "Options:"
opts.on("-r", "--redis [HOST:PORT]", "Redis connection string") do |host|
- Resque.redis = host
+ ResqueAdmin.redis = host
end
opts.on("-N", "--namespace [NAMESPACE]", "Redis namespace") do |namespace|
- Resque.redis.namespace = namespace
+ ResqueAdmin.redis.namespace = namespace
end
opts.on("-h", "--help", "Show this message") do
puts opts
exit
@@ -51,16 +51,16 @@
end
def remove(worker)
abort "** resque remove WORKER_ID" if worker.nil?
- Resque.remove_worker(worker)
+ ResqueAdmin.remove_worker(worker)
puts "** removed #{worker}"
end
def list
- if Resque.workers.any?
- Resque.workers.each do |worker|
+ if ResqueAdmin.workers.any?
+ ResqueAdmin.workers.each do |worker|
puts "#{worker} (#{worker.state})"
end
else
puts "None"
end