Sha256: e53bd6632ffc97d6d5245c6571044cefb771d0e45d62bffd41c5382828928321
Contents?: true
Size: 888 Bytes
Versions: 9
Compression:
Stored size: 888 Bytes
Contents
module Actions module Pulp3 module Repository class CopyContent < Pulp3::AbstractAsyncTask def plan(source_repository, smart_proxy, target_repository, options) plan_self(options.merge(:source_repository_id => source_repository.id, :target_repository_id => target_repository.id, :smart_proxy_id => smart_proxy.id)) end def invoke_external_task source = ::Katello::Repository.find(input[:source_repository_id]) target = ::Katello::Repository.find(input[:target_repository_id] || input[:target_repository]) output[:latest_version_href] = target.backend_service(smart_proxy).read.latest_version_href output[:pulp_tasks] = target.backend_service(smart_proxy).copy_content_for_source(source, input) end end end end end
Version data entries
9 entries across 9 versions & 1 rubygems