lib/runcible/extensions/unit.rb
# Retrieves a set of content by the Pulp unit IDs
#
# @param  [Array]                ids    list of content unit IDs to retrieve
# @param  [Array]                fields optional list of to retrieve
# @return [RestClient::Response]        list of content
Retrieves a set of content by the Pulp unit IDs
Retrieves a set of content by the Pulp unit IDs
def find_all_by_unit_ids(ids, fields = [], optional = {})
        optional[:include_repos] = optional.fetch(:include_repos, true)
        criteria = { :filters => { :_id => { '$in' => ids } } }
        criteria[:fields] = fields unless fields.empty?
        search(content_type, criteria, optional)
      end
def find_all_by_unit_ids ( ids , fields = [ ] , optional = { } ) optional [ :include_repos ] = optional . fetch ( :include_repos , true ) criteria = { :filters => { :_id => { '$in' => ids } } } criteria [ :fields ] = fields unless fields . empty? search ( content_type , criteria , optional ) end
Retrieves a set of content by the Pulp unit IDs
Retrieves a set of content by the Pulp unit IDs
list of content
list of content
RestClient::Response
ids
fields
optional
fields optional list of to retrieve
fields optional list of to retrieve