Sha256: 0e14630a3ffa285c8c094573993a8a29cb7c3dc52a0c244b50b3aa4982b5cad2
Contents?: true
Size: 766 Bytes
Versions: 34
Compression:
Stored size: 766 Bytes
Contents
#!/usr/bin/env ruby # Executable to remove a fully qualified domain name into the prime host tracking data repository # This is useful as a self-correction mechanism to flag out unique website in a constant way require "wmap" def print_usage puts "Program to remove a primary host entry in the local data repository. Usage: deprime [fully qualified domain name]" end puts Wmap.banner print_usage Log_dir=File.dirname(__FILE__)+'/../logs/' Wmap.wlog("Execute the command: deprime #{ARGV[0]}","deprime",Log_dir+"wmap.log") # Update primary host store ph=Wmap::HostTracker::PrimaryHost.instance abort "Incorrect program argument! Proper Usage: deprime [fully qualified domain name]" unless ARGV.length==1 && ph.is_fqdn?(ARGV[0]) ph.delete(ARGV[0]) ph.save! ph=nil
Version data entries
34 entries across 34 versions & 1 rubygems