lib/wmap/site_tracker/deactivated_site.rb
# Deactivate obsolete entrance from the live site store. Note this method is used by the parent class only
Deactivate obsolete entrance from the live site store. Note this method is used by the parent class only
Deactivate obsolete entrance from the live site store . Note this method is used by the parent class only
def add (site,entry)
		begin
			puts "Deactivate site: #{site}" if @verbose
			@known_sites[site]=Hash.new unless @known_sites.key?(site)
			@known_sites[site]['ip']=entry['ip']
			@known_sites[site]['port']=entry['port']
			@known_sites[site]['status']=entry['status']
			@known_sites[site]['server']=entry['server']
			@known_sites[site]['md5']=entry['md5']
			@known_sites[site]['redirection']=entry['redirection']
			@known_sites[site]['timestamp']=entry['timestamp']
			@known_sites[site]['code']=entry['code']
			puts "Deactivate site entry loaded: #{entry}"
		rescue Exception => ee
			puts "Exception on method #{__method__}: #{ee}" if @verbose
			return nil
		end
	end
def add ( site , entry ) begin puts "Deactivate site: #{site}" if @verbose @known_sites [ site ] = Hash . new unless @known_sites . key? ( site ) @known_sites [ site ] [ 'ip' ] = entry [ 'ip' ] @known_sites [ site ] [ 'port' ] = entry [ 'port' ] @known_sites [ site ] [ 'status' ] = entry [ 'status' ] @known_sites [ site ] [ 'server' ] = entry [ 'server' ] @known_sites [ site ] [ 'md5' ] = entry [ 'md5' ] @known_sites [ site ] [ 'redirection' ] = entry [ 'redirection' ] @known_sites [ site ] [ 'timestamp' ] = entry [ 'timestamp' ] @known_sites [ site ] [ 'code' ] = entry [ 'code' ] puts "Deactivate site entry loaded: #{entry}" rescue Exception => ee puts "Exception on method #{__method__}: #{ee}" if @verbose return nil end end
Deactivate obsolete entrance from the live site store.
Deactivate obsolete entrance from the live site store .
site
<not_specific>
entry
<not_specific>