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

Version Path
wmap-2.8.4 bin/deprime
wmap-2.8.3 bin/deprime
wmap-2.8.2 bin/deprime
wmap-2.8.1 bin/deprime
wmap-2.7.9 bin/deprime
wmap-2.7.7 bin/deprime
wmap-2.7.6 bin/deprime
wmap-2.7.2 bin/deprime
wmap-2.7.1 bin/deprime
wmap-2.7.0 bin/deprime
wmap-2.6.9 bin/deprime
wmap-2.6.8 bin/deprime
wmap-2.6.7 bin/deprime
wmap-2.6.6 bin/deprime
wmap-2.6.5 bin/deprime
wmap-2.6.4 bin/deprime
wmap-2.6.3 bin/deprime
wmap-2.6.2 bin/deprime
wmap-2.6.1 bin/deprime
wmap-2.6.0 bin/deprime