Sha256: 40d88464c8f7ddff12251d853300f31c763c9e7807598c550c79d9e34c2fa6e6

Contents?: true

Size: 553 Bytes

Versions: 28

Compression:

Stored size: 553 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_master!).api_client)
      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
    end
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

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