Sha256: dc096be2e737a28d0b61c5ae36cfe248f930f73842cf2cf1224e0ccccaf01211
Contents?: true
Size: 1.37 KB
Versions: 5
Compression:
Stored size: 1.37 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 def copy_contents(destination_repo, _options = {}) @smart_proxy.pulp_api.extensions.ostree_branch.copy(@repo.pulp_id, destination_repo.pulp_id, {}) end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems