Sha256: ece19d58975a67b0f150d151e30d287a8e4b0b002ffa6bd5d8386a07c2c0d422
Contents?: true
Size: 1019 Bytes
Versions: 54
Compression:
Stored size: 1019 Bytes
Contents
module Katello module Pulp3 module ContentViewVersion module ImportExportCommon def generate_name @content_view_version.name.gsub(/\s/, '_') end def generate_id "#{@content_view_version.organization.label}_#{generate_name}" end def api ::Katello::Pulp3::Api::Core.new(@smart_proxy) end def fetch_repository_info(version_href) repo_api = ::Katello::Pulp3::Api::Yum.new(@smart_proxy).repositories_api repo_api.read(version_href_to_repository_href(version_href)) end def version_href_to_repository_href(version_href) version_href.split("/")[0..-3].join("/") + "/" end def zero_version_href(repository_href) # /pulp/api/v3/repositories/rpm/rpm/e59c4334-81d2-4d6b-a1a1-b61fa55ed664/versions/0/ repository_href += "/" unless repository_href.ends_with?('/') "#{repository_href}versions/0/" end end end end end
Version data entries
54 entries across 54 versions & 1 rubygems