From 3dd9062d866266e1940bbf84b1ca5a63482cdadb 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/parser.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/custodian/parser.rb') diff --git a/lib/custodian/parser.rb b/lib/custodian/parser.rb index 733d375..9d1095a 100644 --- a/lib/custodian/parser.rb +++ b/lib/custodian/parser.rb @@ -413,7 +413,7 @@ module Custodian def parse_file( filename ) raise ArgumentError, "Missing configuration file!" if ( filename.nil? ) - raise ArgumentError, "File not found: #{@file}" unless ( File.exists?( filename) ) + raise ArgumentError, "File not found: #{@file}" unless ( File.exist?( filename) ) # # Read the configuration file. -- cgit v1.2.1