resources/docker/nodejs6Action/runner.js
function exec(cmd) {
        return new Promise(
            function (resolve, reject) {
                child_process.exec(cmd, function (error, stdout, stderr) {
                    if (error) {
                        reject(stderr.trim());
                    } else {
                        resolve(stdout.trim());
                    }
                });
            }
        );
    }
function exec(cmd) {
        return new Promise(
            function (resolve, reject) {
                child_process.exec(cmd, function (error, stdout, stderr) {
                    if (error) {
                        reject(stderr.trim());
                    } else {
                        resolve(stdout.trim());
                    }
                });
            }
        );
    }
function exec ( cmd ) { return new Promise ( function ( resolve , reject ) { child_process . exec ( cmd , function ( error , stdout , stderr ) { if ( error ) { reject ( stderr . trim ( ) ) ; } else { resolve ( stdout . trim ( ) ) ; } } ) ; } ) ; }
Helper function to run shell commands.
Helper function to run shell commands .