Sha256: c52b43063d0abbb5808c97df6c9764035736b66de3b2893c4b8fe40ea3672167

Contents?: true

Size: 596 Bytes

Versions: 12

Compression:

Stored size: 596 Bytes

Contents

module Actions
  module Katello
    module Product
      class UpdateHttpProxy < Actions::EntryAction
        def plan(products, http_proxy_policy, http_proxy)
          products.each do |product|
            roots = product.repositories.map(&:root)
            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
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
katello-3.14.1 app/lib/actions/katello/product/update_http_proxy.rb
katello-3.13.4 app/lib/actions/katello/product/update_http_proxy.rb
katello-3.14.0 app/lib/actions/katello/product/update_http_proxy.rb
katello-3.13.3 app/lib/actions/katello/product/update_http_proxy.rb
katello-3.14.0.rc2 app/lib/actions/katello/product/update_http_proxy.rb
katello-3.13.2 app/lib/actions/katello/product/update_http_proxy.rb
katello-3.14.0.rc1 app/lib/actions/katello/product/update_http_proxy.rb
katello-3.13.1 app/lib/actions/katello/product/update_http_proxy.rb
katello-3.13.0 app/lib/actions/katello/product/update_http_proxy.rb
katello-3.13.0.rc2.1 app/lib/actions/katello/product/update_http_proxy.rb
katello-3.13.0.rc2 app/lib/actions/katello/product/update_http_proxy.rb
katello-3.13.0.rc1 app/lib/actions/katello/product/update_http_proxy.rb