Merge pull request +12005 from c9/wsmonitor-fixes

WSMonitor path fixes
pull/248/head
Tim Robinson 2016-02-04 08:15:42 -05:00
commit e5e68460b4
1 zmienionych plików z 3 dodań i 2 usunięć

5
node_modules/c9/gce.js wygenerowano vendored
Wyświetl plik

@ -1,12 +1,13 @@
var childProcess = require("child_process");
var GSSH = __dirname + "/../../scripts/gssh";
function findServers(pattern, options, callback) {
if (!callback && typeof options == "function") {
return findServers(pattern, {}, options);
}
childProcess.exec("gssh --print-names " + pattern, function (err, stdout) {
childProcess.exec(GSSH + " --print-names " + pattern, function (err, stdout) {
if (err) return callback(err);
var serverNames = stdout.split("\n")
@ -28,7 +29,7 @@ function runCommand(pattern, command, options, callback) {
parallel = " -P"
}
var gsshCommand = "gssh " + parallel + " " + pattern + " '" + command + "'";
var gsshCommand = GSSH + " " + parallel + " " + pattern + " '" + command + "'";
childProcess.exec(gsshCommand, function (err, stdout) {
return callback(err, stdout);
});