Class: ImportExportJob
- Inherits:
-
ActiveJob::Base
- Object
- ActiveJob::Base
- ImportExportJob
- Includes:
- Open3
- Defined in:
- app/jobs/import_export_job.rb
Instance Attribute Summary collapse
-
#mode ⇒ Object
readonly
Returns the value of attribute mode.
Instance Method Summary collapse
-
#perform(uri, options = {}) ⇒ Object
Notes: * the Fedora import-export tool is not release yet * current parameters are undergoing changes * import features are not yet available * exporting bags is not yet supported.
Instance Attribute Details
#mode ⇒ Object (readonly)
Returns the value of attribute mode.
4 5 6 |
# File 'app/jobs/import_export_job.rb', line 4 def mode @mode end |
Instance Method Details
#perform(uri, options = {}) ⇒ Object
Notes:
* the Fedora import-export tool is not release yet
* current parameters are undergoing changes
* import features are not yet available
* exporting bags is not yet supported
17 18 19 20 21 22 23 |
# File 'app/jobs/import_export_job.rb', line 17 def perform(uri, = {}) @mode = .fetch(:mode, "export") call(uri, .fetch(:desc_dir, CurationConcerns.config.descriptions_directory), .fetch(:bin_dir, CurationConcerns.config.binaries_directory), .fetch(:profile, nil)) end |