From b7452ae846bae79f96e49887a56b6799d2e58da1 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Wed, 16 Jul 2014 07:37:11 -0400 Subject: [PATCH] refactor(cloudcmd) readConfig --- bin/cloudcmd.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/cloudcmd.js b/bin/cloudcmd.js index 75e0e6d7..561708d7 100755 --- a/bin/cloudcmd.js +++ b/bin/cloudcmd.js @@ -47,10 +47,12 @@ function start(params) { var cloudcmd = require('../cloudcmd'); - readConfig(function(config) { + readConfig(function(msg, config) { if (params && params.test) config.test = params.test; + Util.log(msg); + cloudcmd.start(config); }); } @@ -72,9 +74,7 @@ msg = CloudFunc.formatMsg('read', 'config', status); - Util.log(msg); - - callback(config); + callback(msg, config); }); }