From 2e3e5c1ab74cfc94966c3da47b6d6682da9c4e56 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Wed, 21 May 2014 04:04:28 -0400 Subject: [PATCH] refactor(console) spawn, exec: get -> set --- lib/server/console.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/server/console.js b/lib/server/console.js index c04ae923..5b0ce6ce 100644 --- a/lib/server/console.js +++ b/lib/server/console.js @@ -149,7 +149,7 @@ } if (!ClientFuncs[connNum]) - ClientFuncs[connNum] = Util.bind(getExec, function(json, error, stderr) { + ClientFuncs[connNum] = Util.bind(setExec, function(json, error, stderr) { log(connNum, error, 'error'); log(connNum, stderr, 'stderror'); @@ -173,7 +173,7 @@ } else if (WIN32 || firstChar === ' ' || isContain) exec(command, options, lExec_func); else - getSpawn(command, options, callback); + setSpawn(command, options, callback); } } @@ -182,7 +182,7 @@ * function send result of command to client * @param callback */ - function getExec(callback, error, stdout, stderr) { + function setExec(callback, error, stdout, stderr) { var json, errorStr = stderr || error; @@ -197,7 +197,7 @@ Util.exec(callback, json, error, stderr); } - function getSpawn(сommand, options, callback) { + function setSpawn(сommand, options, callback) { var cmd, error, args = сommand.split(' '), send = function(error, data) {