Module: Katello::ContentViewHelper

Included in:
Actions::Katello::ContentView::Publish, Actions::Katello::ContentViewVersion::IncrementalUpdate
Defined in:
app/helpers/katello/content_view_helper.rb

Instance Method Summary collapse

Instance Method Details

#separated_repo_mapping(repo_mapping, use_multicopy_actions) ⇒ Object



3
4
5
6
7
8
9
10
11
12
13
# File 'app/helpers/katello/content_view_helper.rb', line 3

def separated_repo_mapping(repo_mapping, use_multicopy_actions)
  separated_mapping = { :pulp3_yum_multicopy => {}, :other => {} }
  repo_mapping.each do |source_repos, dest_repo|
    if dest_repo.content_type == "yum" && SmartProxy.pulp_primary.pulp3_support?(dest_repo) && use_multicopy_actions
      separated_mapping[:pulp3_yum_multicopy][source_repos] = dest_repo
    else
      separated_mapping[:other][source_repos] = dest_repo
    end
  end
  separated_mapping
end