Sha256: 63826012ca22e85a6f2d99752e338df01e6384af9e54b069a92fae6d41bfb317
Contents?: true
Size: 603 Bytes
Versions: 76
Compression:
Stored size: 603 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) unless (repo.yum? || repo.empty_in_pulp?) 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
76 entries across 76 versions & 1 rubygems