Class: Actions::Katello::Product::UpdateHttpProxy

Inherits:
EntryAction
  • Object
show all
Defined in:
app/lib/actions/katello/product/update_http_proxy.rb

Instance Method Summary collapse

Instance Method Details

#plan(products, http_proxy_policy, http_proxy) ⇒ Object



5
6
7
8
9
10
11
12
13
14
15
# File 'app/lib/actions/katello/product/update_http_proxy.rb', line 5

def plan(products, http_proxy_policy, http_proxy)
  products.each do |product|
    roots = product.root_repositories
    next if roots.empty?
    plan_action(::Actions::BulkAction,
                ::Actions::Katello::Repository::Update,
                roots,
                http_proxy_policy: http_proxy_policy,
                http_proxy_id: http_proxy&.id)
  end
end