lib/wmap/site_tracker.rb
# Setter to delete site entry to the cache in batch (from a list)
Setter to delete site entry to the cache in batch (from a list)
Setter to delete site entry to the cache in batch ( from a list )
def bulk_delete(list)
		puts "Delete entries to the local site store from list:\n #{list}" if @verbose
		sites=list
		changes=Array.new
		if sites.size > 0
			sites.map do |x|
				x=url_2_site(x)
				site=delete(x)
				changes.push(site) unless site.nil?
			end
			puts "Done deleting sites from the list:\n #{list}"
			return changes
		else
			puts "Error: no entry is loaded. Please check your list and try again."
		end
	rescue => ee
		puts "Exception on method #{__method__}: #{ee}" if @verbose
	end
def bulk_delete ( list ) puts "Delete entries to the local site store from list:\n #{list}" if @verbose sites = list changes = Array . new if sites . size > 0 sites . map do | x | x = url_2_site ( x ) site = delete ( x ) changes . push ( site ) unless site . nil? end puts "Done deleting sites from the list:\n #{list}" return changes else puts "Error: no entry is loaded. Please check your list and try again." end rescue => ee puts "Exception on method #{__method__}: #{ee}" if @verbose end
Setter to delete site entry to the cache in batch (from a list)
Setter to delete site entry to the cache in batch ( from a list )
list
<not_specific>