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

Version Path
katello-4.15.0.rc2 app/lib/actions/katello/orphan_cleanup/remove_orphaned_content_units.rb
katello-4.15.0.rc1 app/lib/actions/katello/orphan_cleanup/remove_orphaned_content_units.rb
katello-4.14.1 app/lib/actions/katello/orphan_cleanup/remove_orphaned_content_units.rb
katello-4.14.0 app/lib/actions/katello/orphan_cleanup/remove_orphaned_content_units.rb
katello-4.14.0.rc3 app/lib/actions/katello/orphan_cleanup/remove_orphaned_content_units.rb
katello-4.14.0.rc2 app/lib/actions/katello/orphan_cleanup/remove_orphaned_content_units.rb
katello-4.14.0.rc1.1 app/lib/actions/katello/orphan_cleanup/remove_orphaned_content_units.rb
katello-4.14.0.rc1 app/lib/actions/katello/orphan_cleanup/remove_orphaned_content_units.rb
katello-4.13.1 app/lib/actions/katello/orphan_cleanup/remove_orphaned_content_units.rb
katello-4.13.0 app/lib/actions/katello/orphan_cleanup/remove_orphaned_content_units.rb
katello-4.12.1 app/lib/actions/katello/orphan_cleanup/remove_orphaned_content_units.rb
katello-4.13.0.rc1 app/lib/actions/katello/orphan_cleanup/remove_orphaned_content_units.rb
katello-4.12.0 app/lib/actions/katello/orphan_cleanup/remove_orphaned_content_units.rb
katello-4.12.0.rc3 app/lib/actions/katello/orphan_cleanup/remove_orphaned_content_units.rb
katello-4.12.0.rc2 app/lib/actions/katello/orphan_cleanup/remove_orphaned_content_units.rb
katello-4.12.0.rc1 app/lib/actions/katello/orphan_cleanup/remove_orphaned_content_units.rb
katello-4.11.1 app/lib/actions/katello/orphan_cleanup/remove_orphaned_content_units.rb
katello-4.11.0 app/lib/actions/katello/orphan_cleanup/remove_orphaned_content_units.rb
katello-4.11.0.rc2 app/lib/actions/katello/orphan_cleanup/remove_orphaned_content_units.rb
katello-4.11.0.rc1 app/lib/actions/katello/orphan_cleanup/remove_orphaned_content_units.rb