Sha256: 69c3e6a98759d0df95768d990941b4a6fa34ad521e33bbd3192d6618d0664869

Contents?: true

Size: 1.03 KB

Versions: 6

Compression:

Stored size: 1.03 KB

Contents

require 'pulp_ansible_client'

module Katello
  module Pulp3
    class Repository
      class AnsibleCollection < ::Katello::Pulp3::Repository
        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

6 entries across 6 versions & 1 rubygems

Version Path
katello-4.2.2 app/services/katello/pulp3/repository/ansible_collection.rb
katello-4.2.1 app/services/katello/pulp3/repository/ansible_collection.rb
katello-4.2.0.1 app/services/katello/pulp3/repository/ansible_collection.rb
katello-4.2.0.1.rc3 app/services/katello/pulp3/repository/ansible_collection.rb
katello-4.2.0.1.rc2 app/services/katello/pulp3/repository/ansible_collection.rb
katello-4.2.0.rc2 app/services/katello/pulp3/repository/ansible_collection.rb