Sha256: 69776b90122b2acf16832a41ca6fcd3d45fece81a3b932c81de2288664a6d7fb

Contents?: true

Size: 1.47 KB

Versions: 6

Compression:

Stored size: 1.47 KB

Contents

module Katello
  module Pulp
    class Repository
      class Deb < ::Katello::Pulp::Repository
        def generate_master_importer
          config = {
            feed: root.url,
            remove_missing: root.mirror_on_sync?,
            releases: root.deb_releases,
            components: root.deb_components,
            architectures: root.deb_architectures,
            gpg_keys: root&.gpg_key&.content,
            require_signature: root.gpg_key.present?
          }
          importer_class.new(config.merge(master_importer_connection_options))
        end

        def generate_mirror_importer
          config = {
            feed: external_url,
            remove_missing: true,
            releases: root.deb_releases,
            components: root.deb_components,
            architectures: root.deb_architectures,
            gpg_keys: root&.gpg_key&.content,
            require_signature: root.gpg_key.present?
          }
          importer_class.new(config.merge(mirror_importer_connection_options))
        end

        def generate_distributors
          [Runcible::Models::DebDistributor.new(repo.relative_path, root.unprotected, true,
                                                id: repo.pulp_id,
                                                auto_publish: true)]
        end

        def partial_repo_path
          "/pulp/deb/#{repo.relative_path}/"
        end

        def importer_class
          Runcible::Models::DebImporter
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
katello-3.10.2 app/services/katello/pulp/repository/deb.rb
katello-3.10.1.1 app/services/katello/pulp/repository/deb.rb
katello-3.10.1 app/services/katello/pulp/repository/deb.rb
katello-3.10.0 app/services/katello/pulp/repository/deb.rb
katello-3.10.0.rc1.1 app/services/katello/pulp/repository/deb.rb
katello-3.10.0.rc1 app/services/katello/pulp/repository/deb.rb