Class: BulkImports::RepositoryBundleExportService
- Inherits:
-
Object
- Object
- BulkImports::RepositoryBundleExportService
- Defined in:
- app/services/bulk_imports/repository_bundle_export_service.rb
Instance Method Summary collapse
- #execute(_options = {}) ⇒ Object
-
#initialize(repository, export_path, export_filename) ⇒ RepositoryBundleExportService
constructor
A new instance of RepositoryBundleExportService.
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( = {}) return unless repository_exists? repository.bundle_to_disk(bundle_filepath) end |