Sha256: 9caaba423bead9f9f6f824b26f31e4c7861881b35b8c1ec7c0bc2504b31aa952
Contents?: true
Size: 561 Bytes
Versions: 18
Compression:
Stored size: 561 Bytes
Contents
module Actions module Pulp module Repository class Clear < Actions::Pulp::AbstractAsyncTask def plan(repo, smart_proxy) plan_self(:repo_id => repo.id, :smart_proxy_id => smart_proxy.id) end def invoke_external_task repo = ::Katello::Repository.find(input[:repo_id]) ::Katello::RepositoryTypeManager.find(repo.content_type).content_types.map do |type| ::SmartProxy.find(input[:smart_proxy_id]).content_service(type).remove(repo) end end end end end end
Version data entries
18 entries across 18 versions & 1 rubygems