Grabbing config and files from github eliminated

This commit is contained in:
Luis Fernando Molina committed 2018-05-29 17:04:28 +02:00
1 parent 2aa4856b9e
commit ae97126b32
4 files changed
+6 -21

No files matched your search

+1 -4
View File
@@ -12,7 +12,6 @@
let storage = STORAGE.newStorage();
let serverConfig;
let githubData;
let storageData;
let fileSystemData;
let ecosystem;
@@ -20,16 +19,14 @@
return thisObject;
function initialize(pEcosystem, pEcosystemObject, pServerConfig, pGithubData, pStorageData, pFileSystemData, callBackFunction) {
function initialize(pEcosystem, pEcosystemObject, pServerConfig, pStorageData, pFileSystemData, callBackFunction) {
serverConfig = pServerConfig;
githubData = pGithubData;
fileSystemData = pFileSystemData;
storageData = pStorageData;
ecosystem = pEcosystem;
ecosystemObject = pEcosystemObject;
github.initialize(githubData);
storage.initialize(storageData, serverConfig);
callBackFunction();
+1 -4
View File
@@ -12,7 +12,6 @@
let storage = STORAGE.newStorage();
let serverConfig;
let githubData;
let storageData;
let fileSystemData;
let ecosystem;
@@ -20,16 +19,14 @@
return thisObject;
function initialize(pEcosystem, pEcosystemObject, pServerConfig, pGithubData, pStorageData, pFileSystemData, callBackFunction) {
function initialize(pEcosystem, pEcosystemObject, pServerConfig, pStorageData, pFileSystemData, callBackFunction) {
serverConfig = pServerConfig;
githubData = pGithubData;
fileSystemData = pFileSystemData;
storageData = pStorageData;
ecosystem = pEcosystem;
ecosystemObject = pEcosystemObject;
github.initialize(githubData);
storage.initialize(storageData, serverConfig);
callBackFunction();
+1 -4
View File
@@ -12,17 +12,15 @@
let storage = STORAGE.newStorage();
let serverConfig;
let githubData;
let storageData;
let ecosystem;
let ecosystemObject;
return thisObject;
function initialize(pEcosystem, pEcosystemObject, pServerConfig, pGithubData, pStorageData, callBackFunction) {
function initialize(pEcosystem, pEcosystemObject, pServerConfig, pStorageData, callBackFunction) {
serverConfig = pServerConfig;
githubData = pGithubData;
storageData = pStorageData;
ecosystem = pEcosystem;
ecosystemObject = pEcosystemObject;
@@ -60,7 +58,6 @@
/* Finalize initializations. */
github.initialize(githubData);
storage.initialize(storageData, serverConfig);
callBackFunction(serverConfig);
+3 -9
View File
@@ -32,7 +32,6 @@ global.CUSTOM_FAIL_RESPONSE = {
message: "Custom Message"
};
let githubData = new Map;
let storageData = new Map;
let fileSystemData = new Map;
@@ -47,9 +46,6 @@ let port = process.env.PORT || 1337;
let isHttpServerStarted = false;
const GITHUB = require('./Server/Github');
let github = GITHUB.newGithub();
const STORAGE = require('./Server/Storage');
let storage = STORAGE.newStorage();
@@ -61,14 +57,13 @@ function initialize() {
/* Clear all cached information. */
githubData = new Map;
storageData = new Map;
fileSystemData = new Map;
const CONFIG_READER = require('./Server/ConfigReader');
let configReader = CONFIG_READER.newConfigReader();
configReader.initialize(ecosystem, ecosystemObject, serverConfig, githubData, storageData, onInitialized);
configReader.initialize(ecosystem, ecosystemObject, serverConfig, storageData, onInitialized);
function onInitialized(pServerConfig) {
@@ -81,13 +76,12 @@ function initialize() {
ecosystem = pEcosystem;
ecosystemObject = pEcosystemObject;
github.initialize(githubData);
storage.initialize(storageData, serverConfig)
const CLOUD_SCRIPTS = require('./Server/CloudScripts');
let cloudScripts = CLOUD_SCRIPTS.newCloudScripts();
cloudScripts.initialize(ecosystem, ecosystemObject, serverConfig, githubData, storageData, fileSystemData, onInitialized);
cloudScripts.initialize(ecosystem, ecosystemObject, serverConfig, storageData, fileSystemData, onInitialized);
function onInitialized() {
@@ -105,7 +99,7 @@ function initialize() {
const BOT_SCRIPTS = require('./Server/BotsScripts');
let botScripts = BOT_SCRIPTS.newBotScripts();
botScripts.initialize(ecosystem, ecosystemObject, serverConfig, githubData, storageData, fileSystemData, onInitialized);
botScripts.initialize(ecosystem, ecosystemObject, serverConfig, storageData, fileSystemData, onInitialized);
function onInitialized() {