diff options
Diffstat (limited to 'lib/custodian')
-rw-r--r-- | lib/custodian/alerts/redis-state.rb | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/lib/custodian/alerts/redis-state.rb b/lib/custodian/alerts/redis-state.rb index 0c0b6a0..1b57b2e 100644 --- a/lib/custodian/alerts/redis-state.rb +++ b/lib/custodian/alerts/redis-state.rb @@ -1,7 +1,4 @@ -require 'rubygems' -require 'redis' - # # The redis-alerter. @@ -35,6 +32,14 @@ module Custodian # the redis connection. # def initialize( obj ) + + begin + require 'rubygems' + require 'redis' + rescue LoadError + raise "ERROR Loading redis rubygem!" + end + @test = obj @redis = Redis.new end |