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

Version Path
katello-4.0.3 app/lib/actions/katello/content_view_version/import.rb
katello-3.18.5 app/lib/actions/katello/content_view_version/import.rb
katello-4.0.2.1 app/lib/actions/katello/content_view_version/import.rb
katello-4.0.2 app/lib/actions/katello/content_view_version/import.rb
katello-3.18.4 app/lib/actions/katello/content_view_version/import.rb
katello-4.0.1.2 app/lib/actions/katello/content_view_version/import.rb
katello-3.18.3.1 app/lib/actions/katello/content_view_version/import.rb
katello-4.0.1.1 app/lib/actions/katello/content_view_version/import.rb
katello-3.18.3 app/lib/actions/katello/content_view_version/import.rb
katello-4.0.1 app/lib/actions/katello/content_view_version/import.rb
katello-4.0.0 app/lib/actions/katello/content_view_version/import.rb
katello-4.0.0.rc3.1 app/lib/actions/katello/content_view_version/import.rb
katello-4.0.0.rc3 app/lib/actions/katello/content_view_version/import.rb
katello-3.18.2.1 app/lib/actions/katello/content_view_version/import.rb
katello-3.18.2 app/lib/actions/katello/content_view_version/import.rb
katello-4.0.0.rc2 app/lib/actions/katello/content_view_version/import.rb
katello-3.18.1.1 app/lib/actions/katello/content_view_version/import.rb
katello-4.0.0.rc1 app/lib/actions/katello/content_view_version/import.rb
katello-3.18.1 app/lib/actions/katello/content_view_version/import.rb
katello-3.18.0 app/lib/actions/katello/content_view_version/import.rb