lib/wmap/site_tracker/wp_tracker.rb
# Refresh wordpress site entries within the sitetracker list
Refresh wordpress site entries within the sitetracker list
Refresh wordpress site entries within the sitetracker list
def refreshs (num=@max_parallel,use_cache=false)
	  puts "Add entries to the local cache table from site tracker: " if @verbose
		results=Hash.new
		wps=@known_wp_sites.keys
		if wps.size > 0
			Parallel.map(wps, :in_processes => num) { |target|
				refresh(target,use_cache)
			}.each do |process|
				if process.nil?
					next
				elsif process.empty?
				else
					site = process['site']
					results[site] = process
				end
			end
			@known_wp_sites.merge!(results)
			puts "Done loading wp entries."
			return results
		else
			puts "Error: no entry is loaded. Please check your list and try again."
		end
		wps=nil
		return results
	end
def refreshs ( num = @max_parallel , use_cache = false ) puts "Add entries to the local cache table from site tracker: " if @verbose results = Hash . new wps = @known_wp_sites . keys if wps . size > 0 Parallel . map ( wps , :in_processes => num ) { | target | refresh ( target , use_cache ) } . each do | process | if process . nil? next elsif process . empty? else site = process [ 'site' ] results [ site ] = process end end @known_wp_sites . merge! ( results ) puts "Done loading wp entries." return results else puts "Error: no entry is loaded. Please check your list and try again." end wps = nil return results end
Refresh wordpress site entries within the sitetracker list
Refresh wordpress site entries within the sitetracker list
#do nothing #rescue => ee #	puts "Exception on method #{__method__}: #{ee}" if @verbose #	return Hash.new
num
<not_specific>
use_cache
<not_specific>