Sha256: c4b9de71e2f93274e1e6efd97df40c80bf73c00c5eaa16f69bfc130a1b2f26c5

Contents?: true

Size: 813 Bytes

Versions: 6

Compression:

Stored size: 813 Bytes

Contents

module Katello
  module Pulp
    class Repository
      class File < ::Katello::Pulp::Repository
        def generate_master_importer
          config = { feed: root.url }
          importer_class.new(config.merge(master_importer_connection_options))
        end

        def generate_mirror_importer
          config = {
            feed: external_url
          }
          importer_class.new(config.merge(mirror_importer_connection_options))
        end

        def generate_distributors
          [Runcible::Models::IsoDistributor.new(repo.relative_path, repo.unprotected, true, auto_publish: true)]
        end

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

        def importer_class
          Runcible::Models::IsoImporter
        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/file.rb
katello-3.10.1.1 app/services/katello/pulp/repository/file.rb
katello-3.10.1 app/services/katello/pulp/repository/file.rb
katello-3.10.0 app/services/katello/pulp/repository/file.rb
katello-3.10.0.rc1.1 app/services/katello/pulp/repository/file.rb
katello-3.10.0.rc1 app/services/katello/pulp/repository/file.rb