Sha256: 7aab747336efb94fe2153715322df8ffeef31fe7053a1ee1bcb1e740819ea8d7

Contents?: true

Size: 519 Bytes

Versions: 177

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

177 entries across 177 versions & 1 rubygems

Version Path
katello-4.7.3 app/lib/actions/katello/product/reindex_subscriptions.rb
katello-4.7.2 app/lib/actions/katello/product/reindex_subscriptions.rb
katello-4.7.1 app/lib/actions/katello/product/reindex_subscriptions.rb
katello-4.6.2.1 app/lib/actions/katello/product/reindex_subscriptions.rb
katello-4.6.2 app/lib/actions/katello/product/reindex_subscriptions.rb
katello-4.7.0 app/lib/actions/katello/product/reindex_subscriptions.rb
katello-4.6.1 app/lib/actions/katello/product/reindex_subscriptions.rb
katello-4.7.0.rc2 app/lib/actions/katello/product/reindex_subscriptions.rb
katello-4.7.0.rc1 app/lib/actions/katello/product/reindex_subscriptions.rb
katello-4.4.2.2 app/lib/actions/katello/product/reindex_subscriptions.rb
katello-4.4.2.1 app/lib/actions/katello/product/reindex_subscriptions.rb
katello-4.4.2 app/lib/actions/katello/product/reindex_subscriptions.rb
katello-4.5.1 app/lib/actions/katello/product/reindex_subscriptions.rb
katello-4.6.0 app/lib/actions/katello/product/reindex_subscriptions.rb
katello-4.6.0.rc2 app/lib/actions/katello/product/reindex_subscriptions.rb
katello-4.6.0.rc1 app/lib/actions/katello/product/reindex_subscriptions.rb
katello-4.5.0 app/lib/actions/katello/product/reindex_subscriptions.rb
katello-4.5.0.rc2 app/lib/actions/katello/product/reindex_subscriptions.rb
katello-4.4.1 app/lib/actions/katello/product/reindex_subscriptions.rb
katello-4.5.0.rc1 app/lib/actions/katello/product/reindex_subscriptions.rb