Sha256: 016b85927d936603811c7cd52f1057e93836e166ec0cd8ec5c775dd38e1c1329

Contents?: true

Size: 1.2 KB

Versions: 69

Compression:

Stored size: 1.2 KB

Contents

require 'pulp_ansible_client'

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

        def remote_options
          common_remote_options.merge(url: root.url.chomp('/').concat('/'),
                                      requirements_file: root.ansible_collection_requirements.blank? ? nil : root.ansible_collection_requirements,
                                      auth_url: root.ansible_collection_auth_url,
                                      token: root.ansible_collection_auth_token,
                                      tls_validation: root.verify_ssl_on_sync)
        end

        def distribution_options(path)
          {
            base_path: path,
            repository_version: repo.version_href,
            name: "#{generate_backend_object_name}"
          }
        end

        def partial_repo_path
          "/pulp_ansible/galaxy/#{repo.relative_path}/api/"
        end

        def mirror_remote_options
          {
          }
        end
      end
    end
  end
end

Version data entries

69 entries across 69 versions & 1 rubygems

Version Path
katello-4.6.2.1 app/services/katello/pulp3/repository/ansible_collection.rb
katello-4.6.2 app/services/katello/pulp3/repository/ansible_collection.rb
katello-4.7.0 app/services/katello/pulp3/repository/ansible_collection.rb
katello-4.6.1 app/services/katello/pulp3/repository/ansible_collection.rb
katello-4.7.0.rc2 app/services/katello/pulp3/repository/ansible_collection.rb
katello-4.7.0.rc1 app/services/katello/pulp3/repository/ansible_collection.rb
katello-4.4.2.2 app/services/katello/pulp3/repository/ansible_collection.rb
katello-4.4.2.1 app/services/katello/pulp3/repository/ansible_collection.rb
katello-4.4.2 app/services/katello/pulp3/repository/ansible_collection.rb
katello-4.5.1 app/services/katello/pulp3/repository/ansible_collection.rb
katello-4.6.0 app/services/katello/pulp3/repository/ansible_collection.rb
katello-4.6.0.rc2 app/services/katello/pulp3/repository/ansible_collection.rb
katello-4.6.0.rc1 app/services/katello/pulp3/repository/ansible_collection.rb
katello-4.5.0 app/services/katello/pulp3/repository/ansible_collection.rb
katello-4.5.0.rc2 app/services/katello/pulp3/repository/ansible_collection.rb
katello-4.4.1 app/services/katello/pulp3/repository/ansible_collection.rb
katello-4.5.0.rc1 app/services/katello/pulp3/repository/ansible_collection.rb
katello-4.4.0.2 app/services/katello/pulp3/repository/ansible_collection.rb
katello-4.4.0.1 app/services/katello/pulp3/repository/ansible_collection.rb
katello-4.3.1 app/services/katello/pulp3/repository/ansible_collection.rb