Sha256: aa84636aa027977a7093f2406b6b4e51eb7cbbad0419c2741dcee4d9cc81b39f

Contents?: true

Size: 758 Bytes

Versions: 34

Compression:

Stored size: 758 Bytes

Contents

module Actions
  module Katello
    module ContentViewVersion
      class AutoCreateProducts < Actions::Base
        def plan(organization:, metadata:)
          helper = ::Katello::Pulp3::ContentViewVersion::ImportableProducts.
                      new(organization: organization,
                          metadata: metadata)
          helper.generate!
          concurrence do
            helper.creatable.each do |product|
              plan_action(::Actions::Katello::Product::Create, product[:product], 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

34 entries across 34 versions & 1 rubygems

Version Path
katello-4.4.2.2 app/lib/actions/katello/content_view_version/auto_create_products.rb
katello-4.4.2.1 app/lib/actions/katello/content_view_version/auto_create_products.rb
katello-4.4.2 app/lib/actions/katello/content_view_version/auto_create_products.rb
katello-4.4.1 app/lib/actions/katello/content_view_version/auto_create_products.rb
katello-4.4.0.2 app/lib/actions/katello/content_view_version/auto_create_products.rb
katello-4.4.0.1 app/lib/actions/katello/content_view_version/auto_create_products.rb
katello-4.3.1 app/lib/actions/katello/content_view_version/auto_create_products.rb
katello-4.4.0 app/lib/actions/katello/content_view_version/auto_create_products.rb
katello-4.4.0.rc2 app/lib/actions/katello/content_view_version/auto_create_products.rb
katello-4.4.0.rc1 app/lib/actions/katello/content_view_version/auto_create_products.rb
katello-4.2.2 app/lib/actions/katello/content_view_version/auto_create_products.rb
katello-4.3.0 app/lib/actions/katello/content_view_version/auto_create_products.rb
katello-4.3.0.rc4 app/lib/actions/katello/content_view_version/auto_create_products.rb
katello-4.3.0.rc3 app/lib/actions/katello/content_view_version/auto_create_products.rb
katello-4.3.0.rc2.1 app/lib/actions/katello/content_view_version/auto_create_products.rb
katello-4.3.0.rc2 app/lib/actions/katello/content_view_version/auto_create_products.rb
katello-4.3.0.rc1 app/lib/actions/katello/content_view_version/auto_create_products.rb
katello-4.2.1 app/lib/actions/katello/content_view_version/auto_create_products.rb
katello-4.2.0.1 app/lib/actions/katello/content_view_version/auto_create_products.rb
katello-4.1.4 app/lib/actions/katello/content_view_version/auto_create_products.rb