Sha256: d4cbf003c467c00b19340ac6edd13639c29664bad433e26381862d2eb0031527
Contents?: true
Size: 807 Bytes
Versions: 23
Compression:
Stored size: 807 Bytes
Contents
module Actions module Katello module ContentViewVersion class AutoCreateProducts < Actions::Base def plan(opts = {}) helper = ::Katello::Pulp3::ContentViewVersion::ImportableProducts. new(organization: opts[:import].organization, metadata_products: opts[:import].metadata_map.products) helper.generate! concurrence do helper.creatable.each do |product| plan_action(::Actions::Katello::Product::Create, product[:product], opts[:import].organization) end helper.updatable.each do |product| plan_action(::Actions::Katello::Product::Update, product[:product], product[:options]) end end end end end end end
Version data entries
23 entries across 23 versions & 1 rubygems