Sha256: 2127abd6a5146a6ef3e7010d78104c12c2b4479fe90180e2a24c0e365d48daa1
Contents?: true
Size: 555 Bytes
Versions: 25
Compression:
Stored size: 555 Bytes
Contents
module Actions module Katello module OrphanCleanup class RemoveOrphanedContentUnits < Actions::Base def run models = [] ::Katello::RepositoryTypeManager.enabled_repository_types.each_value do |repo_type| models << repo_type.content_types_to_index end models.flatten.each do |content_type| content_type.model_class.orphaned.destroy_all end end def rescue_strategy Dynflow::Action::Rescue::Skip end end end end end
Version data entries
25 entries across 25 versions & 1 rubygems