Sha256: d3a07aa146bc4e8704a4c77d472c8225283f09b817dedb6ba7439cc7e03358f9

Contents?: true

Size: 722 Bytes

Versions: 28

Compression:

Stored size: 722 Bytes

Contents

module Actions
  module Katello
    module Organization
      class ManifestDelete < Actions::AbstractAsyncTask
        middleware.use Actions::Middleware::PropagateCandlepinErrors

        def plan(organization)
          action_subject(organization)

          sequence do
            plan_action(Candlepin::Owner::DestroyImports, label: organization.label)

            if SETTINGS[:katello][:use_pulp]
              organization.products.redhat.flat_map(&:repositories).each do |repo|
                plan_action(Katello::Repository::RefreshRepository, repo)
              end
            end
          end
        end

        def humanized_name
          _("Delete Manifest")
        end
      end
    end
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
katello-3.5.2 app/lib/actions/katello/organization/manifest_delete.rb
katello-3.6.0 app/lib/actions/katello/organization/manifest_delete.rb
katello-3.6.0.1.rc2 app/lib/actions/katello/organization/manifest_delete.rb
katello-3.6.0.rc2 app/lib/actions/katello/organization/manifest_delete.rb
katello-3.6.0.rc1 app/lib/actions/katello/organization/manifest_delete.rb
katello-3.5.1.1 app/lib/actions/katello/organization/manifest_delete.rb
katello-3.5.1 app/lib/actions/katello/organization/manifest_delete.rb
katello-3.5.0.1 app/lib/actions/katello/organization/manifest_delete.rb
katello-3.5.0 app/lib/actions/katello/organization/manifest_delete.rb
katello-3.5.0.rc2 app/lib/actions/katello/organization/manifest_delete.rb
katello-3.5.0.rc1 app/lib/actions/katello/organization/manifest_delete.rb
katello-3.4.5 app/lib/actions/katello/organization/manifest_delete.rb
katello-3.4.4 app/lib/actions/katello/organization/manifest_delete.rb
katello-3.4.2 app/lib/actions/katello/organization/manifest_delete.rb
katello-3.4.1 app/lib/actions/katello/organization/manifest_delete.rb
katello-3.4.0.2 app/lib/actions/katello/organization/manifest_delete.rb
katello-3.4.0.1 app/lib/actions/katello/organization/manifest_delete.rb
katello-3.3.2 app/lib/actions/katello/organization/manifest_delete.rb
katello-3.4.0 app/lib/actions/katello/organization/manifest_delete.rb
katello-3.4.0.rc2 app/lib/actions/katello/organization/manifest_delete.rb