Class: Actions::Katello::UpstreamSubscriptions::BindEntitlements
- Inherits:
-
Base
- Object
- Base
- Actions::Katello::UpstreamSubscriptions::BindEntitlements
- Defined in:
- app/lib/actions/katello/upstream_subscriptions/bind_entitlements.rb
Instance Method Summary collapse
Instance Method Details
#humanized_name ⇒ Object
20 21 22 |
# File 'app/lib/actions/katello/upstream_subscriptions/bind_entitlements.rb', line 20 def humanized_name N_("Bind entitlements to an allocation") end |
#plan(pools = []) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'app/lib/actions/katello/upstream_subscriptions/bind_entitlements.rb', line 5 def plan(pools = []) fail _("No pools were provided.") unless pools.any? fail _("Current organization is not set.") unless ::Organization.current input[:pools] = pools sequence do concurrence do pools.each do |pool| plan_action(Katello::UpstreamSubscriptions::BindEntitlement, pool) end end plan_action(Katello::Organization::ManifestRefresh, ::Organization.current) end end |