Permalink
Browse files

Added Resque gem, made test script more verbose.

  • Loading branch information...
1 parent 27a1fd6 commit 7691ebd750f8ab1f6bc6622a91a141ec9f03627f @swhitt committed Jul 10, 2012
Showing with 35 additions and 1 deletion.
  1. +2 −0 Gemfile
  2. +24 −0 Gemfile.lock
  3. +9 −1 redis_failover_test.rb
View
@@ -2,3 +2,5 @@
source "https://rubygems.org"
gem "redis_failover"
+gem "resque"
+gem "pry"
View
@@ -2,10 +2,19 @@ GEM
remote: https://rubygems.org/
specs:
backports (2.5.3)
+ coderay (1.0.7)
little-plugger (1.1.3)
logging (1.7.2)
little-plugger (>= 1.1.3)
+ method_source (0.7.1)
multi_json (1.3.6)
+ pry (0.9.9.6)
+ coderay (~> 1.0.5)
+ method_source (~> 0.7.1)
+ slop (>= 2.4.4, < 3)
+ rack (1.4.1)
+ rack-protection (1.2.0)
+ rack
redis (3.0.1)
redis-namespace (1.2.0)
redis (~> 3.0.0)
@@ -14,6 +23,19 @@ GEM
redis (~> 3)
redis-namespace
zk (~> 1.6)
+ resque (1.21.0)
+ multi_json (~> 1.0)
+ redis-namespace (~> 1.0)
+ sinatra (>= 0.9.2)
+ vegas (~> 0.1.2)
+ sinatra (1.3.2)
+ rack (~> 1.3, >= 1.3.6)
+ rack-protection (~> 1.2)
+ tilt (~> 1.3, >= 1.3.3)
+ slop (2.4.4)
+ tilt (1.3.3)
+ vegas (0.1.11)
+ rack (>= 1.0.0)
zk (1.6.3)
backports (~> 2.5.1)
logging (~> 1.7.2)
@@ -26,4 +48,6 @@ PLATFORMS
ruby
DEPENDENCIES
+ pry
redis_failover
+ resque
View
10 redis_failover_test.rb 100644 → 100755
@@ -1,6 +1,14 @@
+#!/usr/bin/env ruby
require "rubygems"
require "bundler/setup"
require "redis_failover"
+require "resque"
+require "pry"
-client = RedisFailover::Client.new(:zkservers => '192.168.50.10:2181')
+puts "Make sure you've started up redis_node_manager on the zookeeper instance!"
+
+failover_client = RedisFailover::Client.new(:zkservers => '192.168.50.10:2181')
+Resque.redis = failover_client
+
+binding.pry

0 comments on commit 7691ebd

Please sign in to comment.