Sha256: 58c1cc0c27b73a5071cf5765be938381b2bdf467d96b5fa594d9597b6e92be36

Contents?: true

Size: 1 KB

Versions: 19

Compression:

Stored size: 1 KB

Contents

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

          sequence do
            helper.creatable.each do |root|
              plan_action(::Actions::Katello::RepositorySet::EnableRepository,
                            root[:product], root[:content], root[:substitutions],
                            override_url: root[:override_url])
            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

19 entries across 19 versions & 1 rubygems

Version Path
katello-4.8.4 app/lib/actions/katello/content_view_version/auto_create_redhat_repositories.rb
katello-4.8.3 app/lib/actions/katello/content_view_version/auto_create_redhat_repositories.rb
katello-4.9.0 app/lib/actions/katello/content_view_version/auto_create_redhat_repositories.rb
katello-4.7.6 app/lib/actions/katello/content_view_version/auto_create_redhat_repositories.rb
katello-4.8.2 app/lib/actions/katello/content_view_version/auto_create_redhat_repositories.rb
katello-4.9.0.rc2 app/lib/actions/katello/content_view_version/auto_create_redhat_repositories.rb
katello-4.9.0.rc1 app/lib/actions/katello/content_view_version/auto_create_redhat_repositories.rb
katello-4.8.1 app/lib/actions/katello/content_view_version/auto_create_redhat_repositories.rb
katello-4.7.5 app/lib/actions/katello/content_view_version/auto_create_redhat_repositories.rb
katello-4.8.0 app/lib/actions/katello/content_view_version/auto_create_redhat_repositories.rb
katello-4.8.0.rc2 app/lib/actions/katello/content_view_version/auto_create_redhat_repositories.rb
katello-4.7.4 app/lib/actions/katello/content_view_version/auto_create_redhat_repositories.rb
katello-4.8.0.rc1 app/lib/actions/katello/content_view_version/auto_create_redhat_repositories.rb
katello-4.7.3 app/lib/actions/katello/content_view_version/auto_create_redhat_repositories.rb
katello-4.7.2 app/lib/actions/katello/content_view_version/auto_create_redhat_repositories.rb
katello-4.7.1 app/lib/actions/katello/content_view_version/auto_create_redhat_repositories.rb
katello-4.7.0 app/lib/actions/katello/content_view_version/auto_create_redhat_repositories.rb
katello-4.7.0.rc2 app/lib/actions/katello/content_view_version/auto_create_redhat_repositories.rb
katello-4.7.0.rc1 app/lib/actions/katello/content_view_version/auto_create_redhat_repositories.rb