Sha256: adf0d30a2f2cbc71c6ab75cc3576ace6f1663e47ecb496b956203439047349c2
Contents?: true
Size: 645 Bytes
Versions: 83
Compression:
Stored size: 645 Bytes
Contents
namespace :katello do namespace :upgrades do namespace '4.0' do desc "Removes ostree & puppet content from candlepin and katello." task :remove_ostree_puppet_content => ["environment", "check_ping"] do contents = Katello::Content.where(content_type: ['ostree', 'puppet']) contents.each do |content| unless content.products.any?(&:redhat?) Katello::Resources::Candlepin::Content.destroy(content.organization.label, content.cp_content_id) content.destroy end rescue RestClient::NotFound #skip content not found end end end end end
Version data entries
83 entries across 83 versions & 1 rubygems