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

Version Path
katello-4.10.0 app/models/katello/yum_metadata_file.rb
katello-4.9.2 app/models/katello/yum_metadata_file.rb
katello-4.10.0.rc2 app/models/katello/yum_metadata_file.rb
katello-4.10.0.rc1 app/models/katello/yum_metadata_file.rb
katello-4.8.4 app/models/katello/yum_metadata_file.rb
katello-4.9.1 app/models/katello/yum_metadata_file.rb
katello-4.8.3 app/models/katello/yum_metadata_file.rb
katello-4.9.0 app/models/katello/yum_metadata_file.rb
katello-4.7.6 app/models/katello/yum_metadata_file.rb
katello-4.8.2 app/models/katello/yum_metadata_file.rb
katello-4.9.0.rc2 app/models/katello/yum_metadata_file.rb
katello-4.9.0.rc1 app/models/katello/yum_metadata_file.rb
katello-4.8.1 app/models/katello/yum_metadata_file.rb
katello-4.7.5 app/models/katello/yum_metadata_file.rb
katello-4.8.0 app/models/katello/yum_metadata_file.rb
katello-4.8.0.rc2 app/models/katello/yum_metadata_file.rb
katello-4.7.4 app/models/katello/yum_metadata_file.rb
katello-4.8.0.rc1 app/models/katello/yum_metadata_file.rb
katello-4.7.3 app/models/katello/yum_metadata_file.rb
katello-4.7.2 app/models/katello/yum_metadata_file.rb