Class: Actions::Pulp3::ContentViewVersion::DestroyExporter

Inherits:
AbstractAsyncTask show all
Defined in:
app/lib/actions/pulp3/content_view_version/destroy_exporter.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

#smart_proxy

Instance Method Details

#invoke_external_taskObject



12
13
14
15
16
17
# File 'app/lib/actions/pulp3/content_view_version/destroy_exporter.rb', line 12

def invoke_external_task
  repository = ::Katello::Repository.find(input[:repository_id]) unless input[:repository_id].blank?
  ::Katello::Pulp3::ContentViewVersion::Export.create(smart_proxy: smart_proxy,
                                                      format: input[:format],
                                                      repository: repository).destroy_exporter(input[:exporter_data])
end