Sha256: 05034335329d072b959b905444dd5763c6984375376322f764f9410e8e2b7b0f
Contents?: true
Size: 642 Bytes
Versions: 169
Compression:
Stored size: 642 Bytes
Contents
module Actions module Candlepin module Owner class ImportProducts < Candlepin::Abstract input_format do param :organization_id end def run organization = ::Organization.find(input[:organization_id]) ::Katello::Product.without_auditing do User.as_anonymous_admin do updated_content = organization.redhat_provider.import_products_from_cp.content_url_updated ForemanTasks.async_task(Katello::Repository::UpdateContentUrls, updated_content) if updated_content.present? end end end end end end end
Version data entries
169 entries across 169 versions & 1 rubygems