Server/Client are the same box. Creating a UI to run ruby test scripts locally.
I want something like executing an ActiveXObject:
w = new ActiveXObject("WScript.Shell");
w.run('test.rb');
File structure is as follows
>Project
-index.HTML
-custom.js
>Scripts
-Ruby Script
Assuming ruby is installed in the system and is included in the PATH variable. All you need to do is:
var w = new ActiveXObject("WScript.Shell");
w.run('ruby Scripts\\test.rb');
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With