It is not easy to get any useful results from various searches on this concept - perhaps because it is a. Incorrect and / or b. unclear. Essentially, I would like to write an application that runs both a regular web application and a command line interface. I did this in the ancient past for sysadmin-y using Perl, but it did not have the joy of using Ruby / Rails.
I'm comfortable with Rails, and also use standalone Ruby for all CLI types. What I'm looking for are the best methods, if any, to extend a Rails application to provide CLI functionality.
Perhaps the answer is as simple as using a script / runner and making your own VC when using my Rails models ... This is what I planned to do, but I thought I would step back and sanity -View this approach. It’s hard for me to imagine how I use any element of the Rails controller, given that he married HTTP requests so much, but I often wonder what kind of smart people come with them.
Thanks for any helpful answers.
mjmac source share