Sha256: 6f4ce4e261ae0aa3da321b0bcc6b6db7b3699708a11a42167d518202a7d7f6d6
Contents?: true
Size: 1.03 KB
Versions: 7
Compression:
Stored size: 1.03 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) 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
7 entries across 7 versions & 1 rubygems