Sha256: 5aa120246b8ed27c7ef42ae4349d06882b997c8f8b27953cff7ba0c8fa91a2b4

Contents?: true

Size: 462 Bytes

Versions: 2

Compression:

Stored size: 462 Bytes

Contents

module Actions
  module ElasticSearch
    module Provider
      class ReindexSubscriptions < ElasticSearch::Abstract
        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

2 entries across 2 versions & 1 rubygems

Version Path
katello-2.4.0.rc2 app/lib/actions/elastic_search/provider/reindex_subscriptions.rb
katello-2.4.0.rc1 app/lib/actions/elastic_search/provider/reindex_subscriptions.rb