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

Version Path
katello-4.16.0 app/lib/actions/katello/upstream_subscriptions/bind_entitlements.rb
katello-4.15.1 app/lib/actions/katello/upstream_subscriptions/bind_entitlements.rb
katello-4.16.0.rc2 app/lib/actions/katello/upstream_subscriptions/bind_entitlements.rb
katello-4.16.0.rc1 app/lib/actions/katello/upstream_subscriptions/bind_entitlements.rb
katello-4.14.3 app/lib/actions/katello/upstream_subscriptions/bind_entitlements.rb
katello-4.14.2 app/lib/actions/katello/upstream_subscriptions/bind_entitlements.rb
katello-4.15.0 app/lib/actions/katello/upstream_subscriptions/bind_entitlements.rb
katello-4.15.0.rc2 app/lib/actions/katello/upstream_subscriptions/bind_entitlements.rb
katello-4.15.0.rc1 app/lib/actions/katello/upstream_subscriptions/bind_entitlements.rb
katello-4.14.1 app/lib/actions/katello/upstream_subscriptions/bind_entitlements.rb
katello-4.14.0 app/lib/actions/katello/upstream_subscriptions/bind_entitlements.rb
katello-4.14.0.rc3 app/lib/actions/katello/upstream_subscriptions/bind_entitlements.rb
katello-4.14.0.rc2 app/lib/actions/katello/upstream_subscriptions/bind_entitlements.rb
katello-4.14.0.rc1.1 app/lib/actions/katello/upstream_subscriptions/bind_entitlements.rb
katello-4.14.0.rc1 app/lib/actions/katello/upstream_subscriptions/bind_entitlements.rb
katello-4.13.1 app/lib/actions/katello/upstream_subscriptions/bind_entitlements.rb
katello-4.13.0 app/lib/actions/katello/upstream_subscriptions/bind_entitlements.rb
katello-4.12.1 app/lib/actions/katello/upstream_subscriptions/bind_entitlements.rb
katello-4.13.0.rc1 app/lib/actions/katello/upstream_subscriptions/bind_entitlements.rb
katello-4.12.0 app/lib/actions/katello/upstream_subscriptions/bind_entitlements.rb