lib/sdr_client/deposit.rb in sdr-client-0.13.2 vs lib/sdr_client/deposit.rb in sdr-client-0.14.0

- old
+ new

@@ -4,13 +4,15 @@ module SdrClient # The namespace for the "deposit" command module Deposit # rubocop:disable Metrics/ParameterLists + # rubocop:disable Metrics/MethodLength def self.run(label: nil, type: 'http://cocina.sul.stanford.edu/models/book.jsonld', viewing_direction: nil, + access: 'dark', apo:, collection: nil, catkey: nil, embargo_release_date: nil, embargo_access: 'world', @@ -22,10 +24,11 @@ logger: Logger.new(STDOUT)) token = Credentials.read metadata = Request.new(label: label, type: type, + access: access, apo: apo, collection: collection, source_id: source_id, catkey: catkey, embargo_release_date: embargo_release_date, @@ -33,9 +36,10 @@ viewing_direction: viewing_direction, files_metadata: files_metadata) Process.new(metadata: metadata, url: url, token: token, files: files, grouping_strategy: grouping_strategy, logger: logger).run end + # rubocop:enable Metrics/MethodLength # rubocop:enable Metrics/ParameterLists end end require 'json' require 'sdr_client/deposit/single_file_grouping_strategy'