lib/sdr_client/deposit.rb in sdr-client-0.18.0 vs lib/sdr_client/deposit.rb in sdr-client-0.19.0

- old
+ new

@@ -23,12 +23,10 @@ url:, files: [], files_metadata: {}, grouping_strategy: SingleFileGroupingStrategy, logger: Logger.new(STDOUT)) - token = Credentials.read - augmented_metadata = FileMetadataBuilder.build(files: files, files_metadata: files_metadata) metadata = Request.new(label: label, type: type, access: access, apo: apo, @@ -39,10 +37,11 @@ catkey: catkey, embargo_release_date: embargo_release_date, embargo_access: embargo_access, viewing_direction: viewing_direction, files_metadata: augmented_metadata) - Process.new(metadata: metadata, url: url, token: token, files: files, + connection = Connection.new(url: url) + Process.new(metadata: metadata, connection: connection, files: files, grouping_strategy: grouping_strategy, logger: logger).run end # rubocop:enable Metrics/MethodLength # rubocop:enable Metrics/ParameterLists end