lib/sdr_client/deposit.rb in sdr-client-0.26.1 vs lib/sdr_client/deposit.rb in sdr-client-0.27.0

- old
+ new

@@ -49,10 +49,23 @@ accession: accession, logger: logger).run end # rubocop:enable Metrics/MethodLength # rubocop:enable Metrics/ParameterLists + + def self.model_run(request_dro:, + files: [], + url:, + accession:, + logger: Logger.new(STDOUT)) + connection = Connection.new(url: url) + ModelProcess.new(request_dro: request_dro, + connection: connection, + files: files, + logger: logger, + accession: accession).run + end end end require 'json' require 'sdr_client/deposit/single_file_grouping_strategy' require 'sdr_client/deposit/matching_file_grouping_strategy' @@ -61,8 +74,9 @@ require 'sdr_client/deposit/file' require 'sdr_client/deposit/file_metadata_builder' require 'sdr_client/deposit/file_set' require 'sdr_client/deposit/request' require 'sdr_client/deposit/metadata_builder' +require 'sdr_client/deposit/model_process' require 'sdr_client/deposit/process' require 'sdr_client/deposit/upload_files' require 'sdr_client/deposit/upload_resource'