lib/wmap/domain_tracker.rb
# Refresh the domain entry one at a time
Refresh the domain entry one at a time
Refresh the domain entry one at a time
def refresh(domain)
		abort "Trusted Internet domain file not loaded properly! " if @known_internet_domains.nil?
		domain=domain.strip.downcase unless domain.nil?
		if domain_known?(domain)
			delete(domain)
			add(domain)
			return domain
		else
			puts "Unknown domain: #{domain}"
			return nil
		end
	rescue => ee
		puts "Exception on method #{__method__} for #{domain}: #{ee}" if @verbose
		return nil
	end
def refresh ( domain ) abort "Trusted Internet domain file not loaded properly! " if @known_internet_domains . nil? domain = domain . strip . downcase unless domain . nil? if domain_known? ( domain ) delete ( domain ) add ( domain ) return domain else puts "Unknown domain: #{domain}" return nil end rescue => ee puts "Exception on method #{__method__} for #{domain}: #{ee}" if @verbose return nil end
Refresh the domain entry one at a time
Refresh the domain entry one at a time
domain
<not_specific>