Sha256: 45ab405cc8ff6650449c5aa292d953bf1b652d1021597ccd3a78cc2ced4efc37
Contents?: true
Size: 705 Bytes
Versions: 52
Compression:
Stored size: 705 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, options = {}) ::Katello::YumMetadataFile.where(:repository_id => repository).destroy_all super(repository, options) 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
52 entries across 52 versions & 1 rubygems