lib/wmap/host_tracker.rb
# 'setter' to delete host entry to the cache in batch (from an array)
'setter' to delete host entry to the cache in batch (from an array)
' setter ' to delete host entry to the cache in batch ( from an array )
def bulk_delete(list)
		puts "Delete entries to the local host repository from:\n #{list}"
		hosts=list
		changes=Array.new
		if hosts.size > 0
			hosts.map do |x|
				host=delete(x)
				changes.push(host) unless host.nil?
			end
			puts "Done deleting hosts."
			return changes
		else
			puts "Error: empty list - no entry is loaded. Please check your list and try again."
		end
	rescue => ee
		puts "Exception on method #{__method__}: #{ee}"
	end
def bulk_delete ( list ) puts "Delete entries to the local host repository from:\n #{list}" hosts = list changes = Array . new if hosts . size > 0 hosts . map do | x | host = delete ( x ) changes . push ( host ) unless host . nil? end puts "Done deleting hosts." return changes else puts "Error: empty list - no entry is loaded. Please check your list and try again." end rescue => ee puts "Exception on method #{__method__}: #{ee}" end
'setter' to delete host entry to the cache in batch (from an array)
' setter ' to delete host entry to the cache in batch ( from an array )
list
<not_specific>