Sha256: 142a61819e58f2d45dc8845712855c41b3cfa23da090ff7693ecb73979f724a8

Contents?: true

Size: 721 Bytes

Versions: 28

Compression:

Stored size: 721 Bytes

Contents

module Katello
  module Pulp3
    class YumMetadataFile < PulpContentUnit
      include LazyAccessor

      def self.content_api
        PulpRpmClient::ContentRepoMetadataFilesApi.new(Katello::Pulp3::Repository::Yum.api_client(SmartProxy.pulp_master!))
      end

      def self.ids_for_repository(repo_id)
        repo = Katello::Pulp3::Repository::Yum.new(Katello::Repository.find(repo_id), SmartProxy.pulp_master)
        repo_content_list = repo.content_list
        repo_content_list.map { |content| content.try(:pulp_href) }
      end

      # TODO: The Pulp 3 Yum Metadata File API doesn't expose names or file paths yet.
      # Need to decide if we'll still index Yum Metadata Files in Pulp 3.
    end
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
katello-3.16.2 app/services/katello/pulp3/yum_metadata_file.rb
katello-3.16.1.2 app/services/katello/pulp3/yum_metadata_file.rb
katello-3.16.1.1 app/services/katello/pulp3/yum_metadata_file.rb
katello-3.16.1 app/services/katello/pulp3/yum_metadata_file.rb
katello-3.17.0.rc1 app/services/katello/pulp3/yum_metadata_file.rb
katello-3.16.0 app/services/katello/pulp3/yum_metadata_file.rb
katello-3.16.0.rc5.1 app/services/katello/pulp3/yum_metadata_file.rb
katello-3.16.0.rc5 app/services/katello/pulp3/yum_metadata_file.rb
katello-3.16.0.rc4.1 app/services/katello/pulp3/yum_metadata_file.rb
katello-3.15.3.1 app/services/katello/pulp3/yum_metadata_file.rb
katello-3.15.3 app/services/katello/pulp3/yum_metadata_file.rb
katello-3.16.0.rc4 app/services/katello/pulp3/yum_metadata_file.rb
katello-3.16.0.rc3.1 app/services/katello/pulp3/yum_metadata_file.rb
katello-3.15.2 app/services/katello/pulp3/yum_metadata_file.rb
katello-3.16.0.rc3 app/services/katello/pulp3/yum_metadata_file.rb
katello-3.16.0.rc2.1 app/services/katello/pulp3/yum_metadata_file.rb
katello-3.16.0.rc2 app/services/katello/pulp3/yum_metadata_file.rb
katello-3.15.1.1 app/services/katello/pulp3/yum_metadata_file.rb
katello-3.16.0.rc1.1 app/services/katello/pulp3/yum_metadata_file.rb
katello-3.15.1 app/services/katello/pulp3/yum_metadata_file.rb