lib/wmap/host_tracker.rb
# 'setter' to add host entry to the local hosts in batch (from a file)
'setter' to add host entry to the local hosts in batch (from a file)
' setter ' to add host entry to the local hosts in batch ( from a file )
def file_add(file)
		puts "Add entries to the local host repository from file: #{file}"
		raise "File non-exist. Please check your file path and name again: #{file}" unless File.exist?(file)
		hosts=file_2_list(file)
		changes=bulk_add(hosts)
		return changes
	rescue => ee
		puts "Exception on method #{__method__}: #{ee}"
	end
def file_add ( file ) puts "Add entries to the local host repository from file: #{file}" raise "File non-exist. Please check your file path and name again: #{file}" unless File . exist? ( file ) hosts = file_2_list ( file ) changes = bulk_add ( hosts ) return changes rescue => ee puts "Exception on method #{__method__}: #{ee}" end
'setter' to add host entry to the local hosts in batch (from a file)
' setter ' to add host entry to the local hosts in batch ( from a file )
file
<not_specific>