class Berkshelf::APIClient::ChefServerConnection

def initialize(**args)

def initialize(**args)
  @client = Berkshelf::RidleyCompat.new(**args)
  @url = args[:server_url]
end

def universe

def universe
  response = @client.get("universe")
  [].tap do |cookbooks|
    response.each do |name, versions|
      versions.each do |version, attributes|
        attributes[:location_path] = @url
        cookbooks << RemoteCookbook.new(name, version, attributes)
      end
    end
  end
rescue Ridley::Errors::HTTPNotFound
  raise ServiceNotFound, "service not found at: #{@url}"
end