class RuboCop::RemoteConfig

def file

def file
  return cache_path unless cache_path_expired?
  request do |response|
    next if response.is_a?(Net::HTTPNotModified)
    next if response.is_a?(SocketError)
    File.open cache_path, 'w' do |io|
      io.write response.body
    end
  end
  cache_path
end