lib/sdr_client/deposit.rb in sdr-client-0.67.0 vs lib/sdr_client/deposit.rb in sdr-client-0.67.1
- old
+ new
@@ -26,10 +26,11 @@
url:,
files: [],
files_metadata: {},
accession: false,
grouping_strategy: SingleFileGroupingStrategy,
+ file_set_type_strategy: FileTypeFileSetStrategy,
logger: Logger.new($stdout))
augmented_metadata = FileMetadataBuilder.build(files: files, files_metadata: files_metadata)
metadata = Request.new(label: label,
type: type,
access: access,
@@ -46,9 +47,10 @@
viewing_direction: viewing_direction,
files_metadata: augmented_metadata)
connection = Connection.new(url: url)
Process.new(metadata: metadata, connection: connection, files: files,
grouping_strategy: grouping_strategy,
+ file_set_type_strategy: file_set_type_strategy,
accession: accession,
logger: logger).run
end
# rubocop:enable Metrics/MethodLength
# rubocop:enable Metrics/ParameterLists