lib/wmap/site_tracker.rb
# Refresh all site entries in the stores that contains an IP instead of a hostname
Refresh all site entries in the stores that contains an IP instead of a hostname
Refresh all site entries in the stores that contains an IP instead of a hostname
def refresh_ip_sites
		puts "Refresh all entries that contain an IP address instead of a FQDN ... "
		sites=get_ip_sites
		live_sites=sites.delete_if { |x| @known_sites[x]['code'] == 10000 or  @known_sites[x]['code'] == 20000 }
		changes=Hash.new
		changes=bulk_refresh(live_sites)
		@known_sites.merge!(changes)
		puts "Done refresh IP sites."
		return changes
	rescue => ee
		puts "Exception on method #{__method__}: #{ee}" if @verbose
	end
def refresh_ip_sites puts "Refresh all entries that contain an IP address instead of a FQDN ... " sites = get_ip_sites live_sites = sites . delete_if { | x | @known_sites [ x ] [ 'code' ] == 10000 or @known_sites [ x ] [ 'code' ] == 20000 } changes = Hash . new changes = bulk_refresh ( live_sites ) @known_sites . merge! ( changes ) puts "Done refresh IP sites." return changes rescue => ee puts "Exception on method #{__method__}: #{ee}" if @verbose end
Refresh all site entries in the stores that contains an IP instead of a hostname
Refresh all site entries in the stores that contains an IP instead of a hostname