Sha256: af019e86144a20ea04d282e8fa6183d2e2bcc6c0a35a5cef973b550258aead0a
Contents?: true
Size: 745 Bytes
Versions: 8
Compression:
Stored size: 745 Bytes
Contents
module Katello class YumMetadataFile < Katello::Model include Concerns::PulpDatabaseUnit include ScopedSearchExtensions belongs_to :repository, :inverse_of => :yum_metadata_files, :class_name => "Katello::Repository" CONTENT_TYPE = "yum_repo_metadata_file".freeze def self.import_for_repository(repository) ::Katello::YumMetadataFile.where(:repository_id => repository).destroy_all super(repository) end def self.many_repository_associations false end # yum metadata file only has one repo def repositories [repository] end def self.completer_scope_options {"#{Katello::Repository.table_name}" => lambda { |repo_class| repo_class.yum_type } } end end end
Version data entries
8 entries across 8 versions & 1 rubygems