Sha256: 1eb99f2eb1dfb34b7647eeb2b707497e98e6ae9e964ed9a0709a4c032cf9d44e

Contents?: true

Size: 456 Bytes

Versions: 3

Compression:

Stored size: 456 Bytes

Contents

class ResendRequest
	
	def call(env)
		
		output = "Known servers:\n\n"
		
		CityWatch.redis.smembers("#{CityWatch.config[:prefix]}::known_hosts").each do |server|
			output << "#{server}: ".ljust(20) << CityWatch.redis.zrevrange("#{CityWatch.config[:prefix]}::#{server}::summary",0,0).first << "\n"
		end
		
		[200,{"Content-Type" => "text/plain"},[output]]
	end
	
	Routes.add_route new, { :request_method => 'GET', :path_info => %r{^/} }, {}, :home
	
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
city-watch-0.3.2 lib/city_watch/commander/home.rb
city-watch-0.3.1 lib/city_watch/commander/home.rb
city-watch-0.3.0 lib/city_watch/commander/home.rb