Sha256: 524bf69158f6a54f4afae1162c9fa1cfe4f04a4a848d1b01a0470cfccdcb30db

Contents?: true

Size: 790 Bytes

Versions: 10

Compression:

Stored size: 790 Bytes

Contents

module Actions
  module Katello
    module ContentViewVersion
      class AutoCreateRepositories < Actions::Base
        def plan(import:)
          helper = ::Katello::Pulp3::ContentViewVersion::ImportableRepositories.new(
            organization: import.organization,
            metadata_repositories: import.metadata_map.repositories.select { |r| !r.redhat }
          )
          helper.generate!

          sequence do
            helper.creatable.each do |root|
              plan_action(::Actions::Katello::Repository::CreateRoot, root[:repository])
            end
            helper.updatable.each do |root|
              plan_action(::Actions::Katello::Repository::Update, root[:repository], root[:options])
            end
          end
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
katello-4.6.2.1 app/lib/actions/katello/content_view_version/auto_create_repositories.rb
katello-4.6.2 app/lib/actions/katello/content_view_version/auto_create_repositories.rb
katello-4.6.1 app/lib/actions/katello/content_view_version/auto_create_repositories.rb
katello-4.5.1 app/lib/actions/katello/content_view_version/auto_create_repositories.rb
katello-4.6.0 app/lib/actions/katello/content_view_version/auto_create_repositories.rb
katello-4.6.0.rc2 app/lib/actions/katello/content_view_version/auto_create_repositories.rb
katello-4.6.0.rc1 app/lib/actions/katello/content_view_version/auto_create_repositories.rb
katello-4.5.0 app/lib/actions/katello/content_view_version/auto_create_repositories.rb
katello-4.5.0.rc2 app/lib/actions/katello/content_view_version/auto_create_repositories.rb
katello-4.5.0.rc1 app/lib/actions/katello/content_view_version/auto_create_repositories.rb