Class: Actions::Pulp3::OrphanCleanup::PurgeCompletedTasks
- Inherits:
-
AbstractAsyncTask
- Object
- Pulp3::Abstract
- AbstractAsyncTask
- Actions::Pulp3::OrphanCleanup::PurgeCompletedTasks
- Defined in:
- app/lib/actions/pulp3/orphan_cleanup/purge_completed_tasks.rb
Instance Method Summary collapse
Methods inherited from AbstractAsyncTask
#cancel, #cancel!, #combined_tasks, #done?, #external_task, #humanized_state, #new_or_existing_objects, #pulp_tasks, #rescue_external_task, #run, #task_groups
Instance Method Details
#invoke_external_task ⇒ Object
9 10 11 |
# File 'app/lib/actions/pulp3/orphan_cleanup/purge_completed_tasks.rb', line 9 def invoke_external_task output[:pulp_tasks] = ::Katello::Pulp3::Api::Core.new(smart_proxy).purge_completed_tasks end |
#plan(smart_proxy) ⇒ Object
5 6 7 |
# File 'app/lib/actions/pulp3/orphan_cleanup/purge_completed_tasks.rb', line 5 def plan(smart_proxy) plan_self(:smart_proxy_id => smart_proxy.id) end |