Sha256: 2d0a143f121f1075ff8207bc378cddb92df4c2ef21868c1115c18e1b5eec5108

Contents?: true

Size: 664 Bytes

Versions: 14

Compression:

Stored size: 664 Bytes

Contents

module Actions
  module Katello
    module UpstreamSubscriptions
      class BindEntitlement < Actions::Base
        middleware.use Actions::Middleware::KeepCurrentTaxonomies

        def run
          output[:response] = ::Katello::Resources::Candlepin::UpstreamConsumer
            .bind_entitlement(pool)
        end

        def humanized_name
          N_("Bind an entitlement to an allocation")
        end

        def rescue_strategy
          Dynflow::Action::Rescue::Skip
        end

        private

        def pool
          {
            pool: input[:pool],
            quantity: input[:quantity]
          }
        end
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
katello-3.9.1 app/lib/actions/katello/upstream_subscriptions/bind_entitlement.rb
katello-3.9.0 app/lib/actions/katello/upstream_subscriptions/bind_entitlement.rb
katello-3.8.1 app/lib/actions/katello/upstream_subscriptions/bind_entitlement.rb
katello-3.9.0.rc2 app/lib/actions/katello/upstream_subscriptions/bind_entitlement.rb
katello-3.9.0.rc1 app/lib/actions/katello/upstream_subscriptions/bind_entitlement.rb
katello-3.7.1.1 app/lib/actions/katello/upstream_subscriptions/bind_entitlement.rb
katello-3.7.1 app/lib/actions/katello/upstream_subscriptions/bind_entitlement.rb
katello-3.8.0 app/lib/actions/katello/upstream_subscriptions/bind_entitlement.rb
katello-3.8.0.rc3 app/lib/actions/katello/upstream_subscriptions/bind_entitlement.rb
katello-3.8.0.rc2 app/lib/actions/katello/upstream_subscriptions/bind_entitlement.rb
katello-3.7.0 app/lib/actions/katello/upstream_subscriptions/bind_entitlement.rb
katello-3.8.0.rc1 app/lib/actions/katello/upstream_subscriptions/bind_entitlement.rb
katello-3.7.0.rc2 app/lib/actions/katello/upstream_subscriptions/bind_entitlement.rb
katello-3.7.0.rc1 app/lib/actions/katello/upstream_subscriptions/bind_entitlement.rb