Sha256: d38a04a950b291397faf233c3e9d6b0a328a7cb0186b61e6aa39b989aa0d1684
Contents?: true
Size: 965 Bytes
Versions: 72
Compression:
Stored size: 965 Bytes
Contents
module Actions module Pulp3 module Repository class CreatePublication < Pulp3::AbstractAsyncTask middleware.use Actions::Middleware::ExecuteIfContentsChanged def plan(repository, smart_proxy, options) sequence do action = plan_self(:repository_id => repository.id, :smart_proxy_id => smart_proxy.id, :contents_changed => options[:contents_changed], :skip_publication_creation => options[:skip_publication_creation]) plan_action(SavePublication, repository, action.output, :contents_changed => options[:contents_changed]) end end def invoke_external_task unless input[:skip_publication_creation] repository = ::Katello::Repository.find(input[:repository_id]) output[:response] = repository.backend_service(smart_proxy).with_mirror_adapter.create_publication end end end end end end
Version data entries
72 entries across 72 versions & 1 rubygems