Rubygems::_run
Internal helper function that calls an external executable - can't just use backticks, as we want stderr and stdout as separate variables
Also sets this modules gem path into the environment of the external executable
Signature
Parameters
$cmd
— string- - the command to run
$stdout
— object- to string - the resultant stdout
$stderr
— object- to string - the resultant stderr
Returns
- int
- - process exit code, or -1 if the process couldn't be executed