I am new to Ruby so forgive me if my question is obvious. I would really appreciate a little help here.
I have a project which I use as a library. It has 2 rake tasks which gives me a new file which is stored in a folder in the project. Let's say that this rake task serves as a parser and gives a JSON file.
This project can also be used as a gem. The .rake files are placed in the lib path of the project, so the rake tasks are publicly available.
I would like to call this rake tasks in my ruby code, in a new ROR application and have access to the outputed JSON file.
How I can run a rake tasks from a gem in my ROR application code and how I can have access to a file that is stored in the inner folder of the gem?