Sha256: b1819e4c03fe454d4d3660c2261e8e6725e79320f6e57828a1f225324009f66d
Contents?: true
Size: 580 Bytes
Versions: 20
Compression:
Stored size: 580 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| Katello::Resources::Candlepin::Content.destroy(content.organization.label, content.cp_content_id) rescue RestClient::NotFound #skip content not found end contents.destroy_all end end end end
Version data entries
20 entries across 20 versions & 1 rubygems