Sha256: 75cb906f0b53adcf4788d44736603242e012b6eb05c651aa4d944ec17bce88bf
Contents?: true
Size: 764 Bytes
Versions: 6
Compression:
Stored size: 764 Bytes
Contents
module Actions module Pulp3 module Repository class CreatePublication < Pulp3::AbstractAsyncTask def plan(repository, smart_proxy, options) sequence do action = plan_self(:repository_id => repository.id, :smart_proxy_id => smart_proxy.id, :options => options) plan_action(SavePublication, repository, action.output[:pulp_tasks]) end end def invoke_external_task repository = ::Katello::Repository.find(input[:repository_id]) if repository.publication_href.nil? || input[:options][:force] output[:response] = repository.backend_service(smart_proxy).create_publication else [] end end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems