lib/wmap/host_tracker.rb
# Print summary report on the cache
Print summary report on the cache
Print summary report on the cache
def print_known_hosts
		puts "\nSummary of local hosts Table:"
		puts "Total entries: #{@known_hosts.size}"
		(@known_hosts.keys.sort-["",nil]).each do |key|
			value=@known_hosts[key]
			puts "#{key}\t#{value}" if is_fqdn?(key)
		end
		puts "End of the summary"
	end
def print_known_hosts puts "\nSummary of local hosts Table:" puts "Total entries: #{@known_hosts.size}" ( @known_hosts . keys . sort - [ "" , nil ] ) . each do | key | value = @known_hosts [ key ] puts "#{key}\t#{value}" if is_fqdn? ( key ) end puts "End of the summary" end
Print summary report on the cache
Print summary report on the cache