I am using rails runner, and I'd like to run multiple scripts in a folder.
Here is what my files structure looks like...
$ ls db/test/
de_test.rb
fr_test.rb
ja_test.rb
....
de_test.rb
puts "DE"
fr_test.rb
puts "FR"
ja_test.rb
puts "JA"
Now if I run:
$ bundle exec script/rails runner -e production db/test/de_test.rb
DE
$ bundle exec script/rails runner -e production db/test/fr_test.rb
FR
$ bundle exec script/rails runner -e production db/test/ja_test.rb
JA
$ bundle exec script/rails runner -e production db/test/*test.rb
DE
Why doesn't db/test/*test.rb
run all the files? And what can I do to fix this.
This is on RHEL.
Aucun commentaire:
Enregistrer un commentaire