Sha256: 536150a7d659ffcae4c3dd16933afceb6102584c98d6c80b3e546dfd41d463fb
Contents?: true
Size: 1.03 KB
Versions: 104
Compression:
Stored size: 1.03 KB
Contents
module Actions module Katello module PulpSelector def plan_pulp_action(backend_actions, repository, smart_proxy, *args) fail "nil smart_proxy passed to PulpSelector" if smart_proxy.nil? smart_proxy.fix_pulp3_capabilities(repository.content_type) planned = plan_optional_pulp_action(backend_actions, repository, smart_proxy, *args) fail "Could not locate an action for type #{smart_proxy.backend_service_type(repository)}" unless planned planned end def plan_optional_pulp_action(backend_actions, repository, smart_proxy, *args) found_action = select_pulp_action(backend_actions, repository, smart_proxy) plan_action(found_action, repository, smart_proxy, *args) if found_action end def select_pulp_action(backend_actions, repository, smart_proxy) backend_type = smart_proxy.backend_service_type(repository) found_action = backend_actions.find { |action| action.backend_service_type == backend_type } found_action end end end end
Version data entries
104 entries across 104 versions & 1 rubygems