Class: Actions::Pulp3::ContentViewVersion::Export
- Inherits:
-
AbstractAsyncTask
- Object
- EntryAction
- Abstract
- AbstractAsyncTask
- Actions::Pulp3::ContentViewVersion::Export
- Defined in:
- app/lib/actions/pulp3/content_view_version/export.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
Methods inherited from Abstract
Instance Method Details
#invoke_external_task ⇒ Object
15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'app/lib/actions/pulp3/content_view_version/export.rb', line 15 def invoke_external_task repository = ::Katello::Repository.find(input[:repository_id]) unless input[:repository_id].blank? cvv = ::Katello::ContentViewVersion.find(input[:content_view_version_id]) from_cvv = ::Katello::ContentViewVersion.find(input[:from_content_view_version_id]) unless input[:from_content_view_version_id].blank? ::Katello::Pulp3::ContentViewVersion::Export.create(smart_proxy: smart_proxy, content_view_version: cvv, from_content_view_version: from_cvv, format: input[:format], repository: repository) .create_export(input[:exporter_data], chunk_size: input[:chunk_size]) end |