    # File lib/chef/cookbook_version.rb, line 914
        def self.cdb_by_name(cookbook_name, couchdb=nil)
          cdb = (couchdb || Chef::CouchDB.new)
          options = { :startkey => cookbook_name, :endkey => cookbook_name }
          rs = cdb.get_view("cookbooks", "all_with_version", options)
          rs["rows"].inject({}) { |memo, row| memo.has_key?(row["key"]) ? memo[row["key"]] << row["value"] : memo[row["key"]] = [ row["value"] ]; memo }
        end