Sha256: 2acf4b813a5bcaf1d8d64f708d2135af40d55422df6fdd83da3b2aee3b3098ed
Contents?: true
Size: 559 Bytes
Versions: 14
Compression:
Stored size: 559 Bytes
Contents
module Katello module Pulp class DockerTag < PulpContentUnit CONTENT_TYPE = "docker_tag".freeze def update_model(model) taggable_class = backend_data['manifest_type'] == "list" ? ::Katello::DockerManifestList : ::Katello::DockerManifest model.docker_taggable = taggable_class.find_by(:digest => backend_data['manifest_digest']) model.repository_id = ::Katello::Repository.find_by(:pulp_id => backend_data['repo_id']).try(:id) model.name = backend_data['name'] model.save! end end end end
Version data entries
14 entries across 14 versions & 1 rubygems