Created
April 8, 2020 10:31
-
-
Save ql/ad9d29e594467205cce71870a1cfba2f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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