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

Version Path
katello-3.13.4 app/services/katello/pulp/docker_tag.rb
katello-3.13.3 app/services/katello/pulp/docker_tag.rb
katello-3.13.2 app/services/katello/pulp/docker_tag.rb
katello-3.13.1 app/services/katello/pulp/docker_tag.rb
katello-3.13.0 app/services/katello/pulp/docker_tag.rb
katello-3.13.0.rc2.1 app/services/katello/pulp/docker_tag.rb
katello-3.13.0.rc2 app/services/katello/pulp/docker_tag.rb
katello-3.12.3 app/services/katello/pulp/docker_tag.rb
katello-3.12.2 app/services/katello/pulp/docker_tag.rb
katello-3.13.0.rc1 app/services/katello/pulp/docker_tag.rb
katello-3.12.1 app/services/katello/pulp/docker_tag.rb
katello-3.12.0 app/services/katello/pulp/docker_tag.rb
katello-3.12.0.rc2 app/services/katello/pulp/docker_tag.rb
katello-3.12.0.rc1 app/services/katello/pulp/docker_tag.rb