I have to load data into a Spree application. Spree makes use of Rails Engines.
All examples use pretty print or CSV destinations, but I want to use spree models in the destination, eg. SpreeModel.create!(row)
I tried to do rails runner "exec('kiba db/etl/convert-csv.etl')"
, but I get this error:
db/etl/convert-csv.etl:4:in `parse': uninitialized constant Kiba::Context::Spree (NameError)
I've also tried within the Rails console, without success.