Sha256: 7aab747336efb94fe2153715322df8ffeef31fe7053a1ee1bcb1e740819ea8d7

Contents?: true

Size: 519 Bytes

Versions: 179

Compression:

Stored size: 519 Bytes

Contents

module Actions
  module Katello
    module Product
      class ReindexSubscriptions < Actions::EntryAction
        input_format do
          param :id
        end

        def plan(product)
          fail "Only custom products supported." if product.redhat?
          Type! product, ::Katello::Product
          plan_self(id: product.id)
        end

        def run
          product = ::Katello::Product.find_by!(:id => input[:id])
          product.import_custom_subscription
        end
      end
    end
  end
end

Version data entries

179 entries across 179 versions & 1 rubygems

Version Path
katello-4.1.0.rc1.1 app/lib/actions/katello/product/reindex_subscriptions.rb
katello-4.1.0.rc1 app/lib/actions/katello/product/reindex_subscriptions.rb
katello-4.0.0 app/lib/actions/katello/product/reindex_subscriptions.rb
katello-4.0.0.rc3.1 app/lib/actions/katello/product/reindex_subscriptions.rb
katello-4.0.0.rc3 app/lib/actions/katello/product/reindex_subscriptions.rb
katello-3.18.2.1 app/lib/actions/katello/product/reindex_subscriptions.rb
katello-3.18.2 app/lib/actions/katello/product/reindex_subscriptions.rb
katello-3.17.3 app/lib/actions/katello/product/reindex_subscriptions.rb
katello-4.0.0.rc2 app/lib/actions/katello/product/reindex_subscriptions.rb
katello-3.18.1.1 app/lib/actions/katello/product/reindex_subscriptions.rb
katello-3.17.2 app/lib/actions/katello/product/reindex_subscriptions.rb
katello-4.0.0.rc1 app/lib/actions/katello/product/reindex_subscriptions.rb
katello-3.18.1 app/lib/actions/katello/product/reindex_subscriptions.rb
katello-3.18.0 app/lib/actions/katello/product/reindex_subscriptions.rb
katello-3.17.1 app/lib/actions/katello/product/reindex_subscriptions.rb
katello-3.16.2 app/lib/actions/katello/product/reindex_subscriptions.rb
katello-3.18.0.rc2.1 app/lib/actions/katello/product/reindex_subscriptions.rb
katello-3.18.0.rc2 app/lib/actions/katello/product/reindex_subscriptions.rb
katello-3.17.0 app/lib/actions/katello/product/reindex_subscriptions.rb
katello-3.18.0.rc1 app/lib/actions/katello/product/reindex_subscriptions.rb