From d570830db8f7d893cbcf8e7cfe05c4578bb63fd0 Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Thu, 22 Nov 2012 06:43:43 +0000 Subject: Updated for new class name. --- lib/custodian/alerter.rb | 8 ++++---- lib/custodian/multiping.rb | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'lib') diff --git a/lib/custodian/alerter.rb b/lib/custodian/alerter.rb index cb251e7..ffa07dd 100644 --- a/lib/custodian/alerter.rb +++ b/lib/custodian/alerter.rb @@ -1,5 +1,5 @@ -require 'custodian/dnsutil' +require 'custodian/util/dns' require 'mauve/sender' require 'mauve/proto' @@ -97,7 +97,7 @@ class Alerter ( target =~ /^([0-9a-f:]+)$/ ) ) resolved = target else - resolved = DNSUtil.hostname_to_ip( target ) + resolved = Custodian::Util::DNS.hostname_to_ip( target ) end @@ -227,7 +227,7 @@ class Alerter subject = @details['target_host'] if ( ( subject =~ /^([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)$/ ) || ( subject =~ /^([0-9a-f:]+)$/ ) ) - res = DNSUtil.ip_to_hostname( subject ) + res = Custodian::Util::DNS.ip_to_hostname( subject ) if ( res ) subject = res end @@ -240,7 +240,7 @@ class Alerter if ( ( @details["target_host"] =~ /^([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)$/ ) || ( @details["target_host"] =~ /^([0-9a-f:]+)$/ ) ) - resolved = DNSUtil.ip_to_hostname( @details["target_host"] ) + resolved = Custodian::Util::DNS.ip_to_hostname( @details["target_host"] ) if ( resolved.nil? ) resolved = "" else diff --git a/lib/custodian/multiping.rb b/lib/custodian/multiping.rb index b800196..8844112 100644 --- a/lib/custodian/multiping.rb +++ b/lib/custodian/multiping.rb @@ -1,6 +1,6 @@ require 'getoptlong' -require 'custodian/dnsutil' +require 'custodian/util/dns' # # This class has methods to determine whether the target @@ -21,7 +21,7 @@ class MultiPing # def initialize( hostname ) @hostname = hostname - @resolved = DNSUtil.hostname_to_ip( hostname ) + @resolved = Custodian::Util::DNS.hostname_to_ip( hostname ) end -- cgit v1.2.1