Method: Bluth.reconnect!
- Defined in:
- lib/bluth.rb
.reconnect!(delay = 5) ⇒ Object
69 70 71 72 73 74 75 76 77 78 79 80 |
# File 'lib/bluth.rb', line 69 def reconnect! delay=5 sleep delay success = begin Familia.reconnect_all! (Bluth::Gob.redis.ping.to_s.upcase == 'PONG') rescue => ex Familia.info " #{ex.message}" false end Familia.info " reconnected: #{success}" success end |