Sha256: c581009ae62d54046c50cf83be3d40ed0ba082eab0ef74bce12979034673e17d
Contents?: true
Size: 819 Bytes
Versions: 65
Compression:
Stored size: 819 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], :options => options) plan_action(SavePublication, repository, action.output, :contents_changed => options[:contents_changed]) end end def invoke_external_task repository = ::Katello::Repository.find(input[:repository_id]) output[:response] = repository.backend_service(smart_proxy).with_mirror_adapter.create_publication end end end end end
Version data entries
65 entries across 65 versions & 1 rubygems