Module: Actions::Helpers::SmartProxySyncHistoryHelper
- Included in:
- Pulp3::CapsuleContent::Sync
- Defined in:
- app/lib/actions/helpers/smart_proxy_sync_history_helper.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
4 5 6 |
# File 'app/lib/actions/helpers/smart_proxy_sync_history_helper.rb', line 4 def self.included(base) base.middleware.use ::Actions::Middleware::RecordSmartProxySyncHistory end |
Instance Method Details
#done? ⇒ Boolean
8 9 10 11 12 13 14 |
# File 'app/lib/actions/helpers/smart_proxy_sync_history_helper.rb', line 8 def done? is_done = super if is_done ::Katello::SmartProxySyncHistory.where(:id => output[:smart_proxy_history_id], :finished_at => nil).update_all(finished_at: Time.now) end is_done end |
#rescue_external_task(error) ⇒ Object
16 17 18 19 20 21 |
# File 'app/lib/actions/helpers/smart_proxy_sync_history_helper.rb', line 16 def rescue_external_task(error) if output[:smart_proxy_history_id] ::Katello::SmartProxySyncHistory.where(:id => output[:smart_proxy_history_id], :finished_at => nil).delete_all end super end |