Sha256: 91de49c41575613de21165fc1b741d2466cc111a048a067af8bbdd30223e0156
Contents?: true
Size: 1.17 KB
Versions: 20
Compression:
Stored size: 1.17 KB
Contents
module Actions module Katello module ContentViewVersion class Import < Actions::EntryAction def plan(content_view, path:, metadata:) content_view.check_ready_to_import! unless SmartProxy.pulp_primary.pulp3_repository_type_support?(::Katello::Repository::YUM_TYPE) fail _("This action will become available after the Pulp 3 content migration") end ::Katello::Pulp3::ContentViewVersion::Import.check!(content_view: content_view, metadata: metadata, path: path) ::Katello::Pulp3::ContentViewVersion::Import.reset_content_view_repositories_from_metadata!(content_view: content_view, metadata: metadata) major = metadata[:content_view_version][:major] minor = metadata[:content_view_version][:minor] plan_action(::Actions::Katello::ContentView::Publish, content_view, '', path: path, metadata: metadata, importing: true, major: major, minor: minor) end def humanized_name _("Import Content View Version") end end end end end
Version data entries
20 entries across 20 versions & 1 rubygems