Class: Ensurable::Redis
- Inherits:
-
Object
- Object
- Ensurable::Redis
- Defined in:
- lib/ensurables/redis.rb
Instance Method Summary collapse
Instance Method Details
#running? ⇒ Boolean
3 4 5 6 7 8 |
# File 'lib/ensurables/redis.rb', line 3 def running? # this is probly pretty dumb, it greps the proc list for redis-server # taking into account that the grep counts as one num = `ps aux | grep redis-server | wc -l`.to_i true if num > 1 end |