lib/eco/api/usecases/default/utils/split_csv_case.rb in eco-helpers-3.0.3 vs lib/eco/api/usecases/default/utils/split_csv_case.rb in eco-helpers-3.0.4

- old
+ new

@@ -14,11 +14,18 @@ Eco::CSV.split( input_file, max_rows: max_rows, start_at: start_at, &filter - ).each do |file| - log(:info) { "Generated file '#{file}'" } + ).tap do |split| + msg = [] + msg << "Total rows copied: #{split.copy_count} (out of #{split.total_count})" + msg << "Generated files:" + split.out_files.each do |file| + msg << " * #{file}'" + end + + log(:info) { msg.join("\n") } end end end private