lib/wmap/host_tracker.rb
# Setter to delete host entries in the local hosts in batch (from a file)
Setter to delete host entries in the local hosts in batch (from a file)
Setter to delete host entries in the local hosts in batch ( from a file )
def file_delete(file)
		puts "Delete the local host repository entries 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_delete(hosts)
		puts "Delete done."
		return changes
	rescue => ee
		puts "Exception on method #{__method__}: #{ee}"
	end
def file_delete ( file ) puts "Delete the local host repository entries 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_delete ( hosts ) puts "Delete done." return changes rescue => ee puts "Exception on method #{__method__}: #{ee}" end
Setter to delete host entries in the local hosts in batch (from a file)
Setter to delete host entries in the local hosts in batch ( from a file )
file
<not_specific>