Sha256: a562f6a0996d434c9d32a6783832e00c5343a44ecf3e13310fb74f6486d307ef
Contents?: true
Size: 924 Bytes
Versions: 9
Compression:
Stored size: 924 Bytes
Contents
module Actions module Katello module Host class RemoveSubscriptions < Actions::EntryAction middleware.use Actions::Middleware::KeepCurrentUser def plan(host, entitlements) action_subject(host) entitlements.each do |entitlement| plan_action(::Actions::Candlepin::Consumer::RemoveSubscription, :uuid => host.subscription_facet.uuid, :entitlement_id => entitlement['id']) plan_self(:host_name => host.name) end end def rescue_strategy Dynflow::Action::Rescue::Skip end def humanized_name if input.try(:[], :host_name) _('Remove subscriptions from %s') % (input[:host_name] || _('Unknown')) else _('Remove subscriptions') end end def resource_locks :link end end end end end
Version data entries
9 entries across 9 versions & 1 rubygems