1
0

Rename test script to run

This commit is contained in:
Tim Kächele 2023-09-07 12:42:35 +02:00
parent f8d5aba36f
commit f691962698

View File

@ -1,7 +1,7 @@
require "bundler/setup"
require "planet_express_express"
data = File.read("./data.txt")
data = File.read(ARGV[0])
shipments = PlanetExpressExpress::ShipmentReader.new(PlanetExpressExpress::PRICE_LIST).read_shipments(data)
PlanetExpressExpress::Rules.new(PlanetExpressExpress::PRICE_LIST).apply_rules(shipments)