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
asked Mar 19, 2012 at 16:16
unmuse
6972 gold badges10 silver badges22 bronze badges
1 Answer 1
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');
answered Mar 19, 2012 at 16:24
Roland Mai
31.2k8 gold badges58 silver badges61 bronze badges
Sign up to request clarification or add additional context in comments.
1 Comment
unmuse
Making some progress here - although what happens now is a Ruby terminal is briefly opened and closed, but nothing else happens.
default
w.run('Scripts/test.rb');?