lib/wmap/domain_tracker/sub_domain.rb
# 'setter' to add sub-domain entry to the cache one at a time
'setter' to add sub-domain entry to the cache one at a time
' setter ' to add sub - domain entry to the cache one at a time
def add(sub)
		puts "Add entry to the local sub domain cache table: #{sub}" if @verbose
		record=Hash.new
		sub=sub.strip.downcase
		if @known_internet_sub_domains.key?(sub)
			puts "Skip on known sub-domain: #{sub}" if @verbose
			return nil
		end
		if zone_transferable?(sub)
			record[sub]=true
		else
			record[sub]=false
		end
		puts "Adding new record into the data store: #{record}" if @verbose
		@known_internet_sub_domains.merge!(record)
		return record
	rescue => ee
		puts "Exception on method #{__method__} for #{sub}: #{ee}" if @verbose
	end
def add ( sub ) puts "Add entry to the local sub domain cache table: #{sub}" if @verbose record = Hash . new sub = sub . strip . downcase if @known_internet_sub_domains . key? ( sub ) puts "Skip on known sub-domain: #{sub}" if @verbose return nil end if zone_transferable? ( sub ) record [ sub ] = true else record [ sub ] = false end puts "Adding new record into the data store: #{record}" if @verbose @known_internet_sub_domains . merge! ( record ) return record rescue => ee puts "Exception on method #{__method__} for #{sub}: #{ee}" if @verbose end
'setter' to add sub-domain entry to the cache one at a time
' setter ' to add sub - domain entry to the cache one at a time
sub
<not_specific>