Class: ImportExportJob
- Inherits:
-
ActiveJob::Base
- Object
- ActiveJob::Base
- 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
10 11 12 13 |
# File 'app/jobs/import_export_job.rb', line 10 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 |