I am researching a new rails app that would like to create. One
feature of the app will allow users to select a ruby script and run it
on their local machine. However I’m not sure how to implement this.
There are a few points that I’m not sure how to approach:
- How to store the script to be executed on the users PC. As text in
the DB or as a file in the DB (Can a file be stored in a DB) Or as a
file in the apps file structure.
- How to get the script to the users PC and start it running. (The
users PC will have Ruby installed).
- How to report back the result of running the script.