Sha256: ae2136f650a04dadc8f159a1a153fbf6ffdae3613e28cac16a528b96acd39ea0

Contents?: true

Size: 1.2 KB

Versions: 6

Compression:

Stored size: 1.2 KB

Contents

module Katello
  module Pulp
    class Repository
      class Ostree < ::Katello::Pulp::Repository
        PULP_MIRROR_SYNC_DEPTH = -1

        def generate_master_importer
          config = {
            feed: root.url,
            depth: root.compute_ostree_upstream_sync_depth
          }
          Runcible::Models::OstreeImporter.new(config.merge(master_importer_connection_options))
        end

        def generate_mirror_importer
          config = {
            feed: root.url,
            depth: PULP_MIRROR_SYNC_DEPTH
          }
          Runcible::Models::OstreeImporter.new(config.merge(mirror_importer_connection_options))
        end

        def generate_distributors
          [Runcible::Models::OstreeDistributor.new(:id => repo.pulp_id,
                                                  :auto_publish => true,
                                                  :relative_path => repo.relative_path,
                                                  :depth => root.compute_ostree_upstream_sync_depth)]
        end

        def partial_repo_path
          "/pulp/puppet/#{pulp_id}/"
        end

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