lib/sdr_client/deposit.rb in sdr-client-0.7.0 vs lib/sdr_client/deposit.rb in sdr-client-0.7.1

- old
+ new

@@ -1,7 +1,9 @@ # frozen_string_literal: true +require 'logger' + module SdrClient # The namespace for the "deposit" command module Deposit # rubocop:disable Metrics/ParameterLists def self.run(label: nil, @@ -11,20 +13,21 @@ catkey: nil, source_id:, url:, files: [], files_metadata: {}, - grouping_strategy: SingleFileGroupingStrategy) + grouping_strategy: SingleFileGroupingStrategy, + logger: Logger.new(STDOUT)) token = Credentials.read metadata = Request.new(label: label, type: type, apo: apo, collection: collection, source_id: source_id, catkey: catkey) - Process.new(metadata: metadata, url: url, token: token, - files: files, files_metadata: files_metadata, grouping_strategy: grouping_strategy).run + Process.new(metadata: metadata, url: url, token: token, files: files, + files_metadata: files_metadata, grouping_strategy: grouping_strategy, logger: logger).run end # rubocop:enable Metrics/ParameterLists end end require 'json'