If you have a thor task defined in some file like i do:
Normally, you would invoke this thor task newgem from the command-line like this:
$ thor newgem some_name --test-framework rspec
But what if you need to do that from another ruby script?
Well, you can do so by passing the arguments directly, like this:
1 2 |
|
Using start is a way to go, but thor documentation suggest using invoke() instead, like this:
1 2 3 4 |
|
Good look with your ruby scripting!