lib/wmap/site_tracker.rb
# Setter to refresh the entry in the site store one at a time
Setter to refresh the entry in the site store one at a time
Setter to refresh the entry in the site store one at a time
def refresh(site)
		puts "Refresh the local site store for site: #{site} "
		raise "Invalid site: #{site}" if site.nil? or site.empty?
		site=site.strip.downcase
		if @known_sites.key?(site)
			delete(site)
			site_info=add(site)
			puts "Done refresh entry: #{site}"
			return site_info
		else
			puts "Error entry non exist: #{site}"
		end
		return nil
	rescue => ee
		puts "Exception on method #{__method__}: #{ee}" if @verbose
		return nil
	end
def refresh ( site ) puts "Refresh the local site store for site: #{site} " raise "Invalid site: #{site}" if site . nil? or site . empty? site = site . strip . downcase if @known_sites . key? ( site ) delete ( site ) site_info = add ( site ) puts "Done refresh entry: #{site}" return site_info else puts "Error entry non exist: #{site}" end return nil rescue => ee puts "Exception on method #{__method__}: #{ee}" if @verbose return nil end
Setter to refresh the entry in the site store one at a time
Setter to refresh the entry in the site store one at a time
site
<not_specific>