Sha256: 209b9728596b2aa17fd2a38b2604b72778143dedee89c6bd6454684863071a24

Contents?: true

Size: 555 Bytes

Versions: 121

Compression:

Stored size: 555 Bytes

Contents

module Katello
  module Pulp3
    class Distribution < PulpContentUnit
      include LazyAccessor

      def self.content_api
        PulpRpmClient::ContentDistributionTreesApi.new(Katello::Pulp3::Api::Yum.new(SmartProxy.pulp_primary!).api_client)
      end

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

Version data entries

121 entries across 121 versions & 1 rubygems

Version Path
katello-4.11.0 app/services/katello/pulp3/distribution.rb
katello-4.11.0.rc2 app/services/katello/pulp3/distribution.rb
katello-4.11.0.rc1 app/services/katello/pulp3/distribution.rb
katello-4.10.0 app/services/katello/pulp3/distribution.rb
katello-4.9.2 app/services/katello/pulp3/distribution.rb
katello-4.10.0.rc2 app/services/katello/pulp3/distribution.rb
katello-4.10.0.rc1 app/services/katello/pulp3/distribution.rb
katello-4.8.4 app/services/katello/pulp3/distribution.rb
katello-4.9.1 app/services/katello/pulp3/distribution.rb
katello-4.8.3 app/services/katello/pulp3/distribution.rb
katello-4.9.0 app/services/katello/pulp3/distribution.rb
katello-4.7.6 app/services/katello/pulp3/distribution.rb
katello-4.8.2 app/services/katello/pulp3/distribution.rb
katello-4.9.0.rc2 app/services/katello/pulp3/distribution.rb
katello-4.9.0.rc1 app/services/katello/pulp3/distribution.rb
katello-4.8.1 app/services/katello/pulp3/distribution.rb
katello-4.7.5 app/services/katello/pulp3/distribution.rb
katello-4.8.0 app/services/katello/pulp3/distribution.rb
katello-4.8.0.rc2 app/services/katello/pulp3/distribution.rb
katello-4.7.4 app/services/katello/pulp3/distribution.rb