def search(query)
      regex = Regexp.new(query, 'i')
      _cookbooks.collect do |_, v|
        v[v.keys.first] if regex.match(v[v.keys.first].name)
      end.compact
    end
def search(query)
      regex = Regexp.new(query, 'i')
      _cookbooks.collect do |_, v|
        v[v.keys.first] if regex.match(v[v.keys.first].name)
      end.compact
    end
Query the installed cookbooks, returning those who's name matches the
 given query.

 @param [String] query
   the query parameter

 @return [Array<CommunityZero::Cookbook>]
   the list of cookbooks that match the given query