10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
# File 'lib/csvtool/interface/cli/workflows/steps/csv_split/build_session_step.rb', line 10
def call(context)
context[:session] = context.fetch(:session_builder).call(
file_path: context.fetch(:file_path),
col_sep: context.fetch(:col_sep),
headers_present: context.fetch(:headers_present),
chunk_size: context.fetch(:chunk_size),
output_directory: context[:output_directory],
file_prefix: context[:file_prefix],
overwrite_existing: context.fetch(:overwrite_existing, false),
write_manifest: context.fetch(:write_manifest, false),
manifest_path: context[:manifest_path]
)
nil
end
|