Sha256: a96f2ab0a71ff77e2726db0379d465e86b6b53eb9a9681ac0a8a6b635fa9d470
Contents?: true
Size: 751 Bytes
Versions: 182
Compression:
Stored size: 751 Bytes
Contents
module Actions module Katello module UpstreamSubscriptions class BindEntitlements < Actions::Base 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 def humanized_name N_("Bind entitlements to an allocation") end end end end end
Version data entries
182 entries across 182 versions & 1 rubygems