Sha256: 91b68797a8e4f125184973498ee11a3f348f3b445be72d7ede990cae64ba7e35
Contents?: true
Size: 962 Bytes
Versions: 7
Compression:
Stored size: 962 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 :relation => :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
7 entries across 7 versions & 1 rubygems