Sha256: ff899f2bb4d6592ce9e4237ea34d0d5094e78f0c8883a42edfce2cdaaa73d254
Contents?: true
Size: 1.8 KB
Versions: 15
Compression:
Stored size: 1.8 KB
Contents
require 'pulp_deb_client' module Katello module Pulp3 class Repository class Apt < ::Katello::Pulp3::Repository SIGNING_SERVICE_NAME = 'katello_deb_sign'.freeze def remote_options deb_remote_options = { distributions: root.deb_releases } deb_remote_options[:components] = root.deb_components.present? ? root.deb_components : nil deb_remote_options[:architectures] = root.deb_architectures.present? ? root.deb_architectures : nil if root.url.blank? deb_remote_options[:url] = nil end deb_remote_options[:gpgkey] = root.gpg_key.present? ? root.gpg_key.content : nil common_remote_options.merge(deb_remote_options) end def publication_options(repository_version) ss = api.signing_services_api.list(name: SIGNING_SERVICE_NAME).results popts = super(repository_version) popts.merge!( { # structured is not necessary for subscription-manager #structured: true, # publish real suites (e.g. 'stable') simple: true # publish all into 'default'-suite } ) popts[:signing_service] = ss[0].pulp_href if ss && ss.length == 1 popts end def distribution_options(path) { base_path: path, publication: repo.publication_href, name: "#{generate_backend_object_name}" } end def partial_repo_path "/pulp/deb/#{repo.relative_path}/".sub('//', '/') end def copy_content_for_source # TODO fail NotImplementedError end def regenerate_applicability # TODO fail NotImplementedError end end end end end
Version data entries
15 entries across 15 versions & 1 rubygems