app/services/katello/pulp3/api/yum.rb in katello-4.2.2 vs app/services/katello/pulp3/api/yum.rb in katello-4.3.0.rc1
- old
+ new
@@ -2,34 +2,14 @@
module Katello
module Pulp3
module Api
class Yum < Core
- def self.api_exception_class
- PulpRpmClient::ApiError
+ def self.remote_uln_class
+ PulpRpmClient::RpmUlnRemote
end
- def self.client_module
- PulpRpmClient
- end
-
- def self.remote_class
- PulpRpmClient::RpmRpmRemote
- end
-
- def self.distribution_class
- PulpRpmClient::RpmRpmDistribution
- end
-
- def self.publication_class
- PulpRpmClient::RpmRpmPublication
- end
-
- def self.repository_sync_url_class
- PulpRpmClient::RpmRepositorySyncURL
- end
-
def self.rpm_package_group_class
PulpRpmClient::RpmPackageGroup
end
def self.copy_class
@@ -38,31 +18,11 @@
def self.add_remove_content_class
PulpRpmClient::RepositoryAddRemoveContent
end
- def api_client
- api_client_class(PulpRpmClient::ApiClient.new(smart_proxy.pulp3_configuration(PulpRpmClient::Configuration)))
- end
-
- def repositories_api
- PulpRpmClient::RepositoriesRpmApi.new(api_client)
- end
-
- def repository_versions_api
- PulpRpmClient::RepositoriesRpmVersionsApi.new(api_client)
- end
-
- def remotes_api
- PulpRpmClient::RemotesRpmApi.new(api_client)
- end
-
- def publications_api
- PulpRpmClient::PublicationsRpmApi.new(api_client)
- end
-
- def distributions_api
- PulpRpmClient::DistributionsRpmApi.new(api_client)
+ def remotes_uln_api
+ PulpRpmClient::RemotesUlnApi.new(api_client)
end
def copy_api
PulpRpmClient::RpmCopyApi.new(api_client)
end