Sha256: bf3c6fd5331321f1b675a5c80ac67cf1579c7d22354a9c4a63f33367b020d0d2
Contents?: true
Size: 786 Bytes
Versions: 34
Compression:
Stored size: 786 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[:pulp_tasks] = target.backend_service(smart_proxy).copy_content_for_source(source, input) end end end end end
Version data entries
34 entries across 34 versions & 1 rubygems