Class: ImportExportJob
- Inherits:
-
ApplicationJob
- Object
- ApplicationJob
- ImportExportJob
- Includes:
- Open3
- Defined in:
- app/jobs/import_export_job.rb
Instance Method Summary collapse
-
#perform(resource:, mode: 'export', dir: Hyrax.config.bagit_dir) ⇒ Object
TODO: Support BagIt profile.
Instance Method Details
#perform(resource:, mode: 'export', dir: Hyrax.config.bagit_dir) ⇒ Object
TODO: Support BagIt profile
11 12 13 14 |
# File 'app/jobs/import_export_job.rb', line 11 def perform(resource:, mode: 'export', dir: Hyrax.config.bagit_dir) command = "java -jar #{Hyrax.config.import_export_jar_file_path} --mode #{mode} --resource #{resource} --dir #{dir}" internal_call(command) end |