Sha256: 77d230e5b3bd7c77e34bb63a7859e4c7a11c4faa28d43c672ec424e0979778c7
Contents?: true
Size: 716 Bytes
Versions: 158
Compression:
Stored size: 716 Bytes
Contents
module Actions module Pulp3 module Repository class CopyVersion < Pulp3::AbstractAsyncTask def plan(source_repository, smart_proxy, target_repository) plan_self(: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_version(source) end end end end end
Version data entries
158 entries across 158 versions & 1 rubygems