Sha256: bbb2c4fb9f8c4ee45e79841469cdb8d096d521a5dafd461c9bb7bc7018d71bbd
Contents?: true
Size: 928 Bytes
Versions: 2
Compression:
Stored size: 928 Bytes
Contents
module Katello class OstreeBranch < Katello::Model include Concerns::PulpDatabaseUnit has_many :repository_ostree_branches, :dependent => :destroy, :class_name => 'Katello::RepositoryOstreeBranch' has_many :repositories, :through => :repository_ostree_branches, :inverse_of => :ostree_branches scoped_search :on => :name, :complete_value => true scoped_search :on => :version, :complete_value => true scoped_search :on => :commit, :complete_value => true scoped_search :on => :pulp_id, :complete_value => true, :rename => :uuid CONTENT_TYPE = Pulp::OstreeBranch::CONTENT_TYPE def self.repository_association_class RepositoryOstreeBranch end def update_from_json(json) update_attributes(:name => json[:branch], :version => json[:metadata][:version], :commit => json[:commit] ) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
katello-3.11.2 | app/models/katello/ostree_branch.rb |
katello-3.11.1 | app/models/katello/ostree_branch.rb |