Module: Reader

Defined in:
lib/city_watch/reader/server.rb,
lib/city_watch/reader/watchman.rb

Defined Under Namespace

Classes: Host, Watchman

Class Method Summary collapse

Class Method Details

.serversObject



3
4
5
6
7
# File 'lib/city_watch/reader/server.rb', line 3

def self.servers
	CityWatch.redis.smembers("#{CityWatch.config[:prefix]}::known_hosts").map do |server|
		Reader::Host.new(server)
	end
end