Class: BulkImports::RepositoryBundleExportService

Inherits:
Object
  • Object
show all
Defined in:
app/services/bulk_imports/repository_bundle_export_service.rb

Instance Method Summary collapse

Constructor Details

#initialize(repository, export_path, export_filename) ⇒ RepositoryBundleExportService

Returns a new instance of RepositoryBundleExportService.



5
6
7
8
9
# File 'app/services/bulk_imports/repository_bundle_export_service.rb', line 5

def initialize(repository, export_path, export_filename)
  @repository = repository
  @export_path = export_path
  @export_filename = export_filename
end

Instance Method Details

#execute(_options = {}) ⇒ Object



11
12
13
14
15
# File 'app/services/bulk_imports/repository_bundle_export_service.rb', line 11

def execute(_options = {})
  return unless repository_exists?

  repository.bundle_to_disk(bundle_filepath)
end