Sha256: 36cc042051de3180860f5b67ffebe2a2e0ee8a630029eb2e463fa65731ec167c

Contents?: true

Size: 590 Bytes

Versions: 14

Compression:

Stored size: 590 Bytes

Contents

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

        input_format do
          param :entitlement_id
          param :quantity
        end

        def run
          output[:response] = ::Katello::Resources::Candlepin::UpstreamEntitlement.update(input[:entitlement_id], input[:quantity])
        end

        def run_progress_weight
          0.01
        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/update_entitlement.rb
katello-3.9.0 app/lib/actions/katello/upstream_subscriptions/update_entitlement.rb
katello-3.8.1 app/lib/actions/katello/upstream_subscriptions/update_entitlement.rb
katello-3.9.0.rc2 app/lib/actions/katello/upstream_subscriptions/update_entitlement.rb
katello-3.9.0.rc1 app/lib/actions/katello/upstream_subscriptions/update_entitlement.rb
katello-3.7.1.1 app/lib/actions/katello/upstream_subscriptions/update_entitlement.rb
katello-3.7.1 app/lib/actions/katello/upstream_subscriptions/update_entitlement.rb
katello-3.8.0 app/lib/actions/katello/upstream_subscriptions/update_entitlement.rb
katello-3.8.0.rc3 app/lib/actions/katello/upstream_subscriptions/update_entitlement.rb
katello-3.8.0.rc2 app/lib/actions/katello/upstream_subscriptions/update_entitlement.rb
katello-3.7.0 app/lib/actions/katello/upstream_subscriptions/update_entitlement.rb
katello-3.8.0.rc1 app/lib/actions/katello/upstream_subscriptions/update_entitlement.rb
katello-3.7.0.rc2 app/lib/actions/katello/upstream_subscriptions/update_entitlement.rb
katello-3.7.0.rc1 app/lib/actions/katello/upstream_subscriptions/update_entitlement.rb