Skip to content

Instantly share code, notes, and snippets.

@ql
Created April 8, 2020 10:31
Show Gist options
  • Save ql/ad9d29e594467205cce71870a1cfba2f to your computer and use it in GitHub Desktop.
Save ql/ad9d29e594467205cce71870a1cfba2f to your computer and use it in GitHub Desktop.
(1..8).each do |file_num|
file_path = "/tmp/onestop/catalog/available_batchynyny1_0000#{file_num}.xml"
puts "Starting processing file #{file_num}"
Supplier::Onestop::ImportProducts.
new(file_path, nil, 'tmp/products_import_errors.csv').
call
puts "Finished processing file #{file_num}"
end
(1..8).each do |file_num|
file_path = "/tmp/onestop/catalog/available_batchynyny1_0000#{file_num}.xml"
puts "Starting processing file #{file_num}"
Supplier::Onestop::ImportPrices.
new(file_path, nil).
call
puts "Finished processing file #{file_num}"
end
(1..8).each do |file_num|
file_path = "/tmp/onestop/catalog/available_batchynyny1_0000#{file_num}.xml"
puts "Starting processing file #{file_num}"
Supplier::Onestop::ImportInventory.
new(file_path, nil).
call
puts "Finished processing file #{file_num}"
end
Supplier::Onestop::ImportTransitTimesFromFile.new('./fixtures/supplier/onestop/onestop_transit_times.xlsx').call
Supplier::Onestop::ImportTransitDetails.new.call
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment