Method: Runcible::Extensions::Repository#docker_image_ids

Defined in:
lib/runcible/extensions/repository.rb

#docker_image_ids(id) ⇒ RestClient::Response

Retrieves the docker image IDs for a single repository

Parameters:

  • id (String)

    the ID of the repository

Returns:

  • (RestClient::Response)

    the set of repository docker image IDs



305
306
307
308
309
310
# File 'lib/runcible/extensions/repository.rb', line 305

def docker_image_ids(id)
  criteria = {:type_ids => [Runcible::Extensions::DockerImage.content_type],
              :fields => {:unit => [], :association => ['unit_id']}}

  unit_search(id, criteria).map { |i| i['unit_id'] }
end