Skip to content

Commit

Permalink
Fixed broken resque-status
Browse files Browse the repository at this point in the history
  • Loading branch information
take-five committed Apr 12, 2013
1 parent 7781357 commit 6adff6e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bin/resque-status
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ require 'rubygems'
gem 'resque-integration'

require 'resque'
require 'redis'
require 'resque/integration/configuration'

paths = File.join(Dir.pwd, 'config', 'resque.yml'),
Expand All @@ -15,8 +16,8 @@ paths = File.join(Dir.pwd, 'config', 'resque.yml'),
config = Resque::Integration::Configuration.new(*paths)
redis = config.redis

Resque.redis = [redis.host, redis.port, redis.db].join(':')
Resque.redis.namespace = redis.namespace
Resque.redis = Redis.new(redis)
Resque.redis.namespace = redis[:namespace]

info = Resque.info
key = (ARGV.shift || :pending).to_sym
Expand Down

0 comments on commit 6adff6e

Please sign in to comment.