Method: RuboCop::Server::Cache.cache_path

Defined in:
lib/rubocop/server/cache.rb

.cache_pathObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



72
73
74
75
76
77
78
79
80
# File 'lib/rubocop/server/cache.rb', line 72

def cache_path
  cache_root_dir = if cache_root_path
                     File.join(cache_root_path, 'rubocop_cache')
                   else
                     CacheConfig.root_dir_from_toplevel_config
                   end

  File.expand_path(File.join(cache_root_dir, 'server'))
end