kopia lustrzana https://github.com/c9/core
Merge pull request +13780 from c9/multi-abuse-wsmonitor-use-gssh-cache
Make gssh force use cache for extra wsmonitor / abuse commandspull/299/head
commit
6f83744f9a
|
@ -24,12 +24,15 @@ function runCommand(pattern, command, options, callback) {
|
|||
return runCommand(pattern, command, {}, options);
|
||||
}
|
||||
|
||||
var parallel = ""
|
||||
var optionsArray = [];
|
||||
if (options.parallel) {
|
||||
parallel = " -P"
|
||||
optionsArray.push("-P");
|
||||
}
|
||||
if (options.cacheOnly) {
|
||||
optionsArray.push("--cache-only");
|
||||
}
|
||||
|
||||
var gsshCommand = GSSH + " " + parallel + " " + pattern + " '" + command + "'";
|
||||
var gsshCommand = GSSH + " " + optionsArray.join(" ") + " " + pattern + " '" + command + "'";
|
||||
childProcess.exec(gsshCommand, function (err, stdout) {
|
||||
return callback(err, stdout);
|
||||
});
|
||||
|
|
Ładowanie…
Reference in New Issue