Sha256: 340d1efa4f87d4f68e50c06dc96e3546ae7207ea1100c195f79f7d3b1c11e78c

Contents?: true

Size: 486 Bytes

Versions: 6

Compression:

Stored size: 486 Bytes

Contents

module Actions
  module Katello
    class PulpSelector < Actions::Base
      def plan(backend_actions, repository, smart_proxy, *args)
        backend_type = smart_proxy.backend_service_type(repository)
        found_action = backend_actions.find { |action| action.backend_service_type == backend_type }

        fail "Could not locate an action for type #{backend_type}" unless found_action
        plan_action(found_action, repository, smart_proxy, *args)
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
katello-3.12.3 app/lib/actions/katello/pulp_selector.rb
katello-3.12.2 app/lib/actions/katello/pulp_selector.rb
katello-3.12.1 app/lib/actions/katello/pulp_selector.rb
katello-3.12.0 app/lib/actions/katello/pulp_selector.rb
katello-3.12.0.rc2 app/lib/actions/katello/pulp_selector.rb
katello-3.12.0.rc1 app/lib/actions/katello/pulp_selector.rb