Replace deprecated method that cause ruby warnings File.exit?
[arvados.git] / lib / google / api_client / auth / file_storage.rb
index 049ef965a9ad1b817b4830a789f2c012846a558f..fca4ea39ae149d05fad5360865cd9a60662bfd7a 100644 (file)
@@ -42,7 +42,7 @@ module Google
       ##
       # Attempt to read in credentials from the specified file.
       def load_credentials
-        if File.exist? self.path
+        if File.exists? self.path
           File.open(self.path, 'r') do |file|
             cached_credentials = JSON.load(file)
             @authorization = Signet::OAuth2::Client.new(cached_credentials)