Prepare
Create a transfer using the Pure Research Information System as a data source.
transfer = Preservation::Transfer::Pure.new base_url: ENV['PURE_BASE_URL'],
username: ENV['PURE_USERNAME'],
password: ENV['PURE_PASSWORD'],
basic_auth: true
Single
For a Pure dataset, if necessary, fetch the metadata, prepare a directory in the ingest path and populate it with the files and JSON description file.
transfer.prepare_dataset uuid: 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'
Batch
For multiple Pure datasets, if necessary, fetch the metadata, prepare a directory in the ingest path and populate it with the files and JSON description file.
A maximum of 10 will be prepared using the doi_short directory naming scheme. Each dataset will only be prepared if 20 days have elapsed since the metadata record was last modified.
transfer.prepare_dataset_batch max: 10,
dir_scheme: :doi_short,
delay: 20