Sha256: 9b5dbfbc2b9a822bc0bcb65897a9b0623dec63e86180b6de2047e38b7724c5f7
Contents?: true
Size: 313 Bytes
Versions: 7
Compression:
Stored size: 313 Bytes
Contents
class Redis include Watchman def self.data if opts[:ports] dat = opts[:ports].map do |port| out = `redis-cli -p #{port} info` out.gsub(/^(#.*|$)$/,'').gsub(/(\r\n)+/,"\r\n").split("\r\n").map {|str| str.strip.split(":") }.inject({}) {|acc,(k,v)| acc[k.to_sym] = v; acc } end end end end
Version data entries
7 entries across 7 versions & 1 rubygems