Sha256: f08f4e717800ccf59d539b89089aab4cb997671846512472424f3514cd275dfe
Contents?: true
Size: 411 Bytes
Versions: 23
Compression:
Stored size: 411 Bytes
Contents
module Status def set_status_var(var,val,host=host) CityWatch.redis.hset "#{CityWatch.config[:prefix]}::#{host}::#{self.name}::status", var, val end def status_vars(host=host) CityWatch.redis.hgetall "#{CityWatch.config[:prefix]}::#{host}::#{self.name}::status" end def status_var(var,host=host) CityWatch.redis.hget "#{CityWatch.config[:prefix]}::#{host}::#{self.name}::status", var end end
Version data entries
23 entries across 23 versions & 1 rubygems