Class: Actions::Pulp::Repository::ImportUpload
- Inherits:
-
AbstractAsyncTask
- Object
- Base
- Abstract
- AbstractAsyncTask
- Actions::Pulp::Repository::ImportUpload
- Defined in:
- app/lib/actions/pulp/repository/import_upload.rb
Constant Summary
Constants inherited from AbstractAsyncTask
AbstractAsyncTask::FINISHED_STATES
Instance Method Summary collapse
Methods inherited from AbstractAsyncTask
#cancel, #cancel!, #done?, #external_task, #humanized_state, #rescue_external_task, #run
Methods inherited from Abstract
#pulp_extensions, #pulp_resources
Instance Method Details
#invoke_external_task ⇒ Object
12 13 14 15 16 17 18 |
# File 'app/lib/actions/pulp/repository/import_upload.rb', line 12 def invoke_external_task pulp_resources.content.import_into_repo(input[:pulp_id], input[:unit_type_id], input[:upload_id], input[:unit_key], unit_metadata: {}) end |
#rescue_strategy ⇒ Object
20 21 22 |
# File 'app/lib/actions/pulp/repository/import_upload.rb', line 20 def rescue_strategy Dynflow::Action::Rescue::Skip end |