Replace deprecated method that cause ruby warnings File.exit?
[arvados.git] / lib / google / api_client / service.rb
index 451266fe56e9d27404a7d205b91e2f9ebefcaa47..685c61780934f5a75db106c24bf5c0736b94e2e2 100755 (executable)
@@ -120,7 +120,7 @@ module Google
         if options.include? :cache_store
           @cache_store = options[:cache_store]
         else
-          cache_exists = File.exist?(DEFAULT_CACHE_FILE)
+          cache_exists = File.exists?(DEFAULT_CACHE_FILE)
           if (cache_exists && File.writable?(DEFAULT_CACHE_FILE)) ||
              (!cache_exists && File.writable?(Dir.pwd))
             @cache_store = Google::APIClient::Service::SimpleFileStore.new(