Class: ForemanResourceQuota::Async::RefreshResourceQuotaUtilization
- Inherits:
-
Actions::EntryAction
- Object
- Actions::EntryAction
- ForemanResourceQuota::Async::RefreshResourceQuotaUtilization
- Includes:
- Actions::RecurringAction
- Defined in:
- lib/foreman_resource_quota/async/refresh_resource_quota_utilization.rb
Instance Method Summary collapse
Instance Method Details
#logger ⇒ Object
16 17 18 |
# File 'lib/foreman_resource_quota/async/refresh_resource_quota_utilization.rb', line 16 def logger action_logger end |
#rescue_strategy_for_self ⇒ Object
20 21 22 |
# File 'lib/foreman_resource_quota/async/refresh_resource_quota_utilization.rb', line 20 def rescue_strategy_for_self Dynflow::Action::Rescue::Fail end |
#run ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/foreman_resource_quota/async/refresh_resource_quota_utilization.rb', line 8 def run ResourceQuota.all.each do |quota| quota.determine_utilization rescue e logger.error N_(format("An error occured determining the utilization of '%s'-quota: %s", quota.name, e)) end end |