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

Version Path
city-watch-0.7.9 lib/city_watch/util/status.rb
city-watch-0.7.8 lib/city_watch/util/status.rb
city-watch-0.7.7 lib/city_watch/util/status.rb
city-watch-0.7.6 lib/city_watch/util/status.rb
city-watch-0.7.5 lib/city_watch/util/status.rb
city-watch-0.7.4 lib/city_watch/util/status.rb
city-watch-0.7.3 lib/city_watch/util/status.rb
city-watch-0.7.2 lib/city_watch/util/status.rb
city-watch-0.7.1 lib/city_watch/util/status.rb
city-watch-0.7.0 lib/city_watch/util/status.rb
city-watch-0.6.9 lib/city_watch/util/status.rb
city-watch-0.6.8 lib/city_watch/util/status.rb
city-watch-0.6.7 lib/city_watch/util/status.rb
city-watch-0.6.6 lib/city_watch/util/status.rb
city-watch-0.6.5 lib/city_watch/util/status.rb
city-watch-0.6.4 lib/city_watch/util/status.rb
city-watch-0.6.3 lib/city_watch/util/status.rb
city-watch-0.6.2 lib/city_watch/util/status.rb
city-watch-0.6.1 lib/city_watch/util/status.rb
city-watch-0.6.0 lib/city_watch/util/status.rb