Sha256: 10d4fe9471f57489c028bb25e1032572e71d273879b29e46e54f3dbd95554138

Contents?: true

Size: 1.14 KB

Versions: 20

Compression:

Stored size: 1.14 KB

Contents

module Actions
  module Pulp3
    module Orchestration
      module ContentViewVersion
        class CopyVersionUnitsToLibrary < Actions::EntryAction
          def plan(content_view_version)
            concurrence do
              content_view_version.importable_repositories.each do |repo|
                sequence do
                  copy_action = plan_action(Actions::Pulp3::Repository::CopyContent, repo, SmartProxy.pulp_primary!,
                                                    repo.library_instance,
                                                    copy_all: true,
                                                    mirror: content_view_version.content_view.library_import?)
                  plan_action(Actions::Pulp3::Repository::SaveVersion, repo.library_instance,
                                tasks: copy_action.output[:pulp_tasks])
                  plan_action(Katello::Repository::IndexContent, id: repo.library_instance_id)
                  plan_action(Katello::Repository::MetadataGenerate, repo.library_instance, :force => true)
                end
              end
            end
          end
        end
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

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