From e0868062c1132f1816479515a22a8f55d2dddee9 Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Mon, 9 Mar 2015 12:37:48 +0000 Subject: File.exists? is deprecated. We prefer "File.exist?". Flagged by rubocop. --- lib/custodian/protocoltest/smtprelay.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/custodian/protocoltest/smtprelay.rb') diff --git a/lib/custodian/protocoltest/smtprelay.rb b/lib/custodian/protocoltest/smtprelay.rb index 7cf22cc..85f7896 100644 --- a/lib/custodian/protocoltest/smtprelay.rb +++ b/lib/custodian/protocoltest/smtprelay.rb @@ -63,7 +63,7 @@ module Custodian def get_hostname hostname = "localhost.localdomain" - if ( File.exists?( "/etc/hostname" ) ) + if ( File.exist?( "/etc/hostname" ) ) File.readlines("/etc/hostname" ).each do |line| hostname = line if ( !line.nil? ) hostname.chomp! -- cgit v1.2.1