Class: Katello::Pulp3::Repository::AnsibleCollection
Constant Summary
COPY_UNIT_PAGE_SIZE
Instance Attribute Summary
#repo, #smart_proxy
Instance Method Summary
collapse
#add_content, #add_content_for_repo, #api, api, #append_proxy_cacert, #common_remote_options, #compute_remote_options, #content_service, #copy_all, #copy_units_by_href, #copy_version, #core_api, #create, #create_distribution, #create_mirror_entities, #create_options, #create_publication, #create_remote, #create_version, #delete_distributions, #delete_distributions_by_path, #delete_remote, #delete_repository, #delete_version, #distribution_needs_update?, #distribution_reference, #fail_missing_publication, #generate_backend_object_name, #get_distribution, #get_remote, #initialize, instance_for_type, #list, #lookup_distributions, #lookup_publication, #lookup_version, publication_href?, #publication_options, #published?, #read, #read_distribution, #refresh_distributions, #refresh_if_needed, #refresh_mirror_entities, #relative_path, #remote_partial_update, #remove_content, #repair, #repository_import_content, #repository_reference, #retain_package_versions_count, #save_distribution_references, #secure_distribution_options, #should_purge_empty_contents?, #skip_types, #specific_create_options, #ssl_remote_options, #sync, #sync_url_params, #unit_keys, #update, #update_distribution, #update_remote, version_href?, #version_zero?, #with_mirror_adapter
#create_remote, #create_test_remote, #ignore_404_exception, #reformat_api_exception, #test_remote_name
#proxy, #proxy_host, #proxy_port, #proxy_scheme, #proxy_uri
Instance Method Details
#copy_content_for_source(source_repository, _options = {}) ⇒ Object
7
8
9
|
# File 'app/services/katello/pulp3/repository/ansible_collection.rb', line 7
def copy_content_for_source(source_repository, _options = {})
copy_units_by_href(source_repository.ansible_collections.pluck(:pulp_id))
end
|
#distribution_options(path) ⇒ Object
19
20
21
22
23
24
25
|
# File 'app/services/katello/pulp3/repository/ansible_collection.rb', line 19
def distribution_options(path)
{
base_path: path,
repository_version: repo.version_href,
name: "#{generate_backend_object_name}"
}
end
|
#mirror_remote_options ⇒ Object
31
32
33
34
|
# File 'app/services/katello/pulp3/repository/ansible_collection.rb', line 31
def mirror_remote_options
{
}
end
|
#partial_repo_path ⇒ Object
27
28
29
|
# File 'app/services/katello/pulp3/repository/ansible_collection.rb', line 27
def partial_repo_path
"/pulp_ansible/galaxy/#{repo.relative_path}/api/"
end
|
#remote_options ⇒ Object
11
12
13
14
15
16
17
|
# File 'app/services/katello/pulp3/repository/ansible_collection.rb', line 11
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
|