lib/wmap/site_tracker.rb
# Setter to add site entry to the cache table in batch (from a file)
Setter to add site entry to the cache table in batch (from a file)
Setter to add site entry to the cache table in batch ( from a file )
def file_add(file)
		puts "Add entries to the local site store from file: #{file}"
		raise "File non-exist. Please check your file path and name again: #{file}" unless File.exist?(file)
		changes=Hash.new
		sites=file_2_list(file)
		changes=bulk_add(sites) unless sites.nil? or sites.empty?
		puts "Done loading file #{file}. "
		return changes
	rescue => ee
		puts "Exception on method #{__method__}: #{ee}"
	end
def file_add ( file ) puts "Add entries to the local site store from file: #{file}" raise "File non-exist. Please check your file path and name again: #{file}" unless File . exist? ( file ) changes = Hash . new sites = file_2_list ( file ) changes = bulk_add ( sites ) unless sites . nil? or sites . empty? puts "Done loading file #{file}. " return changes rescue => ee puts "Exception on method #{__method__}: #{ee}" end
Setter to add site entry to the cache table in batch (from a file)
Setter to add site entry to the cache table in batch ( from a file )
file
<not_specific>