Sha256: e264484a1c326989e0501ce854638e010335f043425c19e2052d663dd2542d3d

Contents?: true

Size: 1.1 KB

Versions: 52

Compression:

Stored size: 1.1 KB

Contents

module Katello
  module Pulp3
    class Repository
      class Generic < ::Katello::Pulp3::Repository
        def copy_content_for_source(source_repository, _options = {})
          copy_units_by_href(source_repository.files.pluck(:pulp_id))
        end

        def distribution_options(path)
          options = {
            base_path: path,
            name: "#{generate_backend_object_name}"
          }

          if ::Katello::RepositoryTypeManager.find(repo.content_type).pulp3_skip_publication
            options.merge!(repository_version: repo.version_href)
          else
            options.merge!(publication: repo.publication_href)
          end

          options
        end

        def remote_options
          generic_remote_options = JSON.parse(root.generic_remote_options)
          if generic_remote_options.any?
            common_remote_options.merge(generic_remote_options).symbolize_keys
          else
            common_remote_options
          end
        end

        def partial_repo_path
          "/pulp/content/#{repo.relative_path}/".sub('//', '/')
        end
      end
    end
  end
end

Version data entries

52 entries across 52 versions & 1 rubygems

Version Path
katello-4.12.1 app/services/katello/pulp3/repository/generic.rb
katello-4.12.0 app/services/katello/pulp3/repository/generic.rb
katello-4.12.0.rc3 app/services/katello/pulp3/repository/generic.rb
katello-4.12.0.rc2 app/services/katello/pulp3/repository/generic.rb
katello-4.12.0.rc1 app/services/katello/pulp3/repository/generic.rb
katello-4.11.1 app/services/katello/pulp3/repository/generic.rb
katello-4.11.0 app/services/katello/pulp3/repository/generic.rb
katello-4.11.0.rc2 app/services/katello/pulp3/repository/generic.rb
katello-4.11.0.rc1 app/services/katello/pulp3/repository/generic.rb
katello-4.10.0 app/services/katello/pulp3/repository/generic.rb
katello-4.9.2 app/services/katello/pulp3/repository/generic.rb
katello-4.10.0.rc2 app/services/katello/pulp3/repository/generic.rb
katello-4.10.0.rc1 app/services/katello/pulp3/repository/generic.rb
katello-4.8.4 app/services/katello/pulp3/repository/generic.rb
katello-4.9.1 app/services/katello/pulp3/repository/generic.rb
katello-4.8.3 app/services/katello/pulp3/repository/generic.rb
katello-4.9.0 app/services/katello/pulp3/repository/generic.rb
katello-4.7.6 app/services/katello/pulp3/repository/generic.rb
katello-4.8.2 app/services/katello/pulp3/repository/generic.rb
katello-4.9.0.rc2 app/services/katello/pulp3/repository/generic.rb