Sha256: 9df4a7b02a0e139cfc36e577d1db5cd6ed221c6f76c9d879d94625e1b8ac37f5
Contents?: true
Size: 956 Bytes
Versions: 6
Compression:
Stored size: 956 Bytes
Contents
module Katello class DockerManifest < Katello::Model include Concerns::PulpDatabaseUnit has_many :docker_tags, :dependent => :destroy, :class_name => "Katello::DockerTag" has_many :repository_docker_manifests, :dependent => :destroy has_many :repositories, :through => :repository_docker_manifests, :inverse_of => :docker_manifests CONTENT_TYPE = Pulp::DockerManifest::CONTENT_TYPE scoped_search :on => :name, :complete_value => true scoped_search :in => :docker_tags, :on => :name, :rename => :tag, :complete_value => true, :only_explicit => true def self.repository_association_class RepositoryDockerManifest end def update_from_json(json) update_attributes(:name => json[:name], :schema_version => json[:schema_version], :digest => json[:digest], :downloaded => json[:downloaded] ) end end end
Version data entries
6 entries across 6 versions & 1 rubygems