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