Sha256: 527c9d1c44729c47318c43463f672d739ac951cf9bab20ce3241c4edbc281098

Contents?: true

Size: 888 Bytes

Versions: 28

Compression:

Stored size: 888 Bytes

Contents

module Actions
  module Katello
    module ContentViewVersion
      class AutoCreateRepositories < 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::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

28 entries across 28 versions & 1 rubygems

Version Path
katello-4.11.1 app/lib/actions/katello/content_view_version/auto_create_repositories.rb
katello-4.11.0 app/lib/actions/katello/content_view_version/auto_create_repositories.rb
katello-4.11.0.rc2 app/lib/actions/katello/content_view_version/auto_create_repositories.rb
katello-4.11.0.rc1 app/lib/actions/katello/content_view_version/auto_create_repositories.rb
katello-4.10.0 app/lib/actions/katello/content_view_version/auto_create_repositories.rb
katello-4.9.2 app/lib/actions/katello/content_view_version/auto_create_repositories.rb
katello-4.10.0.rc2 app/lib/actions/katello/content_view_version/auto_create_repositories.rb
katello-4.10.0.rc1 app/lib/actions/katello/content_view_version/auto_create_repositories.rb
katello-4.8.4 app/lib/actions/katello/content_view_version/auto_create_repositories.rb
katello-4.9.1 app/lib/actions/katello/content_view_version/auto_create_repositories.rb
katello-4.8.3 app/lib/actions/katello/content_view_version/auto_create_repositories.rb
katello-4.9.0 app/lib/actions/katello/content_view_version/auto_create_repositories.rb
katello-4.7.6 app/lib/actions/katello/content_view_version/auto_create_repositories.rb
katello-4.8.2 app/lib/actions/katello/content_view_version/auto_create_repositories.rb
katello-4.9.0.rc2 app/lib/actions/katello/content_view_version/auto_create_repositories.rb
katello-4.9.0.rc1 app/lib/actions/katello/content_view_version/auto_create_repositories.rb
katello-4.8.1 app/lib/actions/katello/content_view_version/auto_create_repositories.rb
katello-4.7.5 app/lib/actions/katello/content_view_version/auto_create_repositories.rb
katello-4.8.0 app/lib/actions/katello/content_view_version/auto_create_repositories.rb
katello-4.8.0.rc2 app/lib/actions/katello/content_view_version/auto_create_repositories.rb