Class: Actions::Katello::UpstreamSubscriptions::RemoveEntitlement
- Inherits:
-
Base
- Object
- Base
- Actions::Katello::UpstreamSubscriptions::RemoveEntitlement
- Defined in:
- app/lib/actions/katello/upstream_subscriptions/remove_entitlement.rb
Instance Method Summary collapse
Instance Method Details
#run ⇒ Object
12 13 14 15 16 |
# File 'app/lib/actions/katello/upstream_subscriptions/remove_entitlement.rb', line 12 def run output[:response] = ::Katello::Resources::Candlepin::UpstreamConsumer.remove_entitlement(input[:entitlement_id]) rescue ::Katello::Errors::UpstreamEntitlementGone output[:response] = _("%s has already been deleted" % input[:sub_name]) end |
#run_progress_weight ⇒ Object
18 19 20 |
# File 'app/lib/actions/katello/upstream_subscriptions/remove_entitlement.rb', line 18 def run_progress_weight 0.01 end |