Class: Projects::ImportExport::ParallelExportService
- Inherits:
-
Object
- Object
- Projects::ImportExport::ParallelExportService
- Defined in:
- app/services/projects/import_export/parallel_export_service.rb
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(export_job, current_user, after_export_strategy) ⇒ ParallelExportService
constructor
A new instance of ParallelExportService.
Constructor Details
#initialize(export_job, current_user, after_export_strategy) ⇒ ParallelExportService
Returns a new instance of ParallelExportService.
6 7 8 9 10 11 12 |
# File 'app/services/projects/import_export/parallel_export_service.rb', line 6 def initialize(export_job, current_user, after_export_strategy) @export_job = export_job @current_user = current_user @after_export_strategy = after_export_strategy @shared = project.import_export_shared @logger = Gitlab::Export::Logger.build end |
Instance Method Details
#execute ⇒ Object
14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'app/services/projects/import_export/parallel_export_service.rb', line 14 def execute log_info('Parallel project export started') if save_exporters && save_export_archive log_info('Parallel project export finished successfully') execute_after_export_action(after_export_strategy) else notify_error end ensure cleanup end |