Sha256: 1f8acacde91ac41a01d950c4796e7fda1ae5531e5bb1a26af7b97b63152fc769

Contents?: true

Size: 857 Bytes

Versions: 23

Compression:

Stored size: 857 Bytes

Contents

require 'pulp_ansible_client'

module Katello
  module Pulp3
    class Repository
      class AnsibleCollection < ::Katello::Pulp3::Repository
        def remote_options
          if root.url.blank?
            super
          else
            common_remote_options.merge(url: root.url.chomp("/"), requirements_file: root.ansible_collection_requirements.blank? ? nil : root.ansible_collection_requirements)
          end
        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/v2/collections"
        end

        def mirror_remote_options
          {
          }
        end
      end
    end
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
katello-4.0.3 app/services/katello/pulp3/repository/ansible_collection.rb
katello-3.18.5 app/services/katello/pulp3/repository/ansible_collection.rb
katello-4.0.2.1 app/services/katello/pulp3/repository/ansible_collection.rb
katello-4.0.2 app/services/katello/pulp3/repository/ansible_collection.rb
katello-3.18.4 app/services/katello/pulp3/repository/ansible_collection.rb
katello-4.0.1.2 app/services/katello/pulp3/repository/ansible_collection.rb
katello-3.18.3.1 app/services/katello/pulp3/repository/ansible_collection.rb
katello-4.0.1.1 app/services/katello/pulp3/repository/ansible_collection.rb
katello-3.18.3 app/services/katello/pulp3/repository/ansible_collection.rb
katello-4.0.1 app/services/katello/pulp3/repository/ansible_collection.rb
katello-4.0.0 app/services/katello/pulp3/repository/ansible_collection.rb
katello-4.0.0.rc3.1 app/services/katello/pulp3/repository/ansible_collection.rb
katello-4.0.0.rc3 app/services/katello/pulp3/repository/ansible_collection.rb
katello-3.18.2.1 app/services/katello/pulp3/repository/ansible_collection.rb
katello-3.18.2 app/services/katello/pulp3/repository/ansible_collection.rb
katello-4.0.0.rc2 app/services/katello/pulp3/repository/ansible_collection.rb
katello-3.18.1.1 app/services/katello/pulp3/repository/ansible_collection.rb
katello-4.0.0.rc1 app/services/katello/pulp3/repository/ansible_collection.rb
katello-3.18.1 app/services/katello/pulp3/repository/ansible_collection.rb
katello-3.18.0 app/services/katello/pulp3/repository/ansible_collection.rb