Class: Actions::Katello::UpstreamSubscriptions::BindEntitlement

Inherits:
Base
  • Object
show all
Defined in:
app/lib/actions/katello/upstream_subscriptions/bind_entitlement.rb

Instance Method Summary collapse

Instance Method Details

#humanized_nameObject



10
11
12
# File 'app/lib/actions/katello/upstream_subscriptions/bind_entitlement.rb', line 10

def humanized_name
  N_("Bind an entitlement to an allocation")
end

#rescue_strategyObject



14
15
16
# File 'app/lib/actions/katello/upstream_subscriptions/bind_entitlement.rb', line 14

def rescue_strategy
  Dynflow::Action::Rescue::Skip
end

#runObject



5
6
7
8
# File 'app/lib/actions/katello/upstream_subscriptions/bind_entitlement.rb', line 5

def run
  output[:response] = ::Katello::Resources::Candlepin::UpstreamConsumer
    .bind_entitlement(pool)
end