I am creating a small web application for system administration (I think Web-Min, but in RoR), and I need to have access to system parameters from my Ruby code. For example, I want to allow the user to change the host name, time zone, or network configuration of the server.
My current thoughts are to have a separate setuid script (Perl, Ruby, ??) so that I can call it from my RoR code, and it will take action. It is rather bulky and not very elegant. I am new to Ruby and would like to know if there is a better way to accomplish this type of thing.
Thanks!
source
share