Sha256: 81e8b6d2d5fda93eb54c2a49525de0af77f03058e201d96fca148f4f2201d97a
Contents?: true
Size: 871 Bytes
Versions: 53
Compression:
Stored size: 871 Bytes
Contents
module Actions module Pulp module Repository class DistributorPublish < Pulp::AbstractAsyncTask middleware.use Actions::Middleware::SkipIfMatchingContent def plan(repository, smart_proxy, options) options = {:smart_proxy_id => smart_proxy.id, :options => options, :dependency => options[:dependency]} options[:repository_id] = repository.id plan_self(options) end def invoke_external_task repo = ::Katello::Repository.find_by(:id => input[:repository_id]) repo.clear_smart_proxy_sync_histories if smart_proxy(input[:smart_proxy_id]).pulp_primary? repo.backend_service(smart_proxy(input[:smart_proxy_id])).distributor_publish(input[:options]) end def humanized_name _("Repository metadata publish") end end end end end
Version data entries
53 entries across 53 versions & 1 rubygems