summaryrefslogtreecommitdiff
path: root/lib/custodian/parser.rb
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2015-03-09 12:37:48 +0000
committerSteve Kemp <steve@steve.org.uk>2015-03-09 12:37:48 +0000
commit3dd9062d866266e1940bbf84b1ca5a63482cdadb (patch)
treed19897e9d5e8f3fc7a1f4d232ec7ff6a4bebd99b /lib/custodian/parser.rb
parent90070510d4b3913e3f18e05e57c9b5a3170adde5 (diff)
File.exists? is deprecated.
We prefer "File.exist?". Flagged by rubocop.
Diffstat (limited to 'lib/custodian/parser.rb')
-rw-r--r--lib/custodian/parser.rb2
1 files changed, 1 insertions, 1 deletions
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.