mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-26 17:29:27 +00:00
refactored
This commit is contained in:
parent
ebeffdc16e
commit
140a97504f
6 changed files with 29 additions and 17 deletions
|
|
@ -19,7 +19,7 @@
|
|||
https = main.https,
|
||||
qs = main.querystring,
|
||||
|
||||
Config = main.config,
|
||||
Modules = main.modules,
|
||||
Util = main.util,
|
||||
|
||||
GithubAuth = {
|
||||
|
|
@ -48,7 +48,9 @@
|
|||
};
|
||||
|
||||
function authenticate(pCode, pCallBack) {
|
||||
var lGitHub = Config.github,
|
||||
var lStorage = Util.findObjByNameInArr(Modules, 'storage'),
|
||||
lGitHub = Util.findObjByNameInArr(lStorage.data, 'GitHub'),
|
||||
|
||||
lId = lGitHub && lGitHub.key,
|
||||
lSecret = lGitHub && lGitHub.secret,
|
||||
lEnv = process.env,
|
||||
|
|
|
|||
|
|
@ -71,6 +71,7 @@
|
|||
|
||||
/* Main Information */
|
||||
exports.config = mrequire(JSONDIR + 'config');
|
||||
exports.modules = mrequire(JSONDIR + 'modules');
|
||||
exports.mainpackage = rootrequire('package');
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue