Sha256: 165ba1882ea9c000f187590bf5539e769aaf505b9eb6d6f201a6df3264bbe6d3

Contents?: true

Size: 514 Bytes

Versions: 7

Compression:

Stored size: 514 Bytes

Contents

module Actions
  module Katello
    module Provider
      class ReindexSubscriptions < Actions::EntryAction
        middleware.use Actions::Middleware::KeepCurrentUser

        input_format do
          param :id
        end

        def plan(provider)
          Type! provider, ::Katello::Provider
          plan_self(id: provider.id)
        end

        def finalize
          provider = ::Katello::Provider.find_by_id!(input[:id])
          provider.index_subscriptions
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
katello-2.4.5 app/lib/actions/katello/provider/reindex_subscriptions.rb
katello-2.4.4 app/lib/actions/katello/provider/reindex_subscriptions.rb
katello-2.4.3 app/lib/actions/katello/provider/reindex_subscriptions.rb
katello-2.4.2 app/lib/actions/katello/provider/reindex_subscriptions.rb
katello-2.4.1 app/lib/actions/katello/provider/reindex_subscriptions.rb
katello-2.4.0 app/lib/actions/katello/provider/reindex_subscriptions.rb
katello-2.4.0.rc3 app/lib/actions/katello/provider/reindex_subscriptions.rb