refactor(tmpName): 'tmpName' renamed to 'plugins'
This commit is contained in:
parent
308cd76656
commit
c88993ad37
3 changed files with 13 additions and 13 deletions
12
lib/app.js
12
lib/app.js
|
|
@ -5,7 +5,7 @@ var https = require('https');
|
|||
var express = require('express');
|
||||
var LamassuConfig = require('lamassu-config');
|
||||
var routes = require('./routes');
|
||||
var tmpName = require('./tmpName');
|
||||
var plugins = require('./plugins');
|
||||
var PostgresqlInterface = require('./postgresql_interface');
|
||||
var logger = require('./logger');
|
||||
|
||||
|
|
@ -21,7 +21,7 @@ module.exports = function (options) {
|
|||
|
||||
config = new LamassuConfig(connectionString);
|
||||
db = new PostgresqlInterface(connectionString);
|
||||
tmpName.init(db);
|
||||
plugins.init(db);
|
||||
|
||||
|
||||
config.load(function (err, config) {
|
||||
|
|
@ -30,8 +30,8 @@ module.exports = function (options) {
|
|||
throw err;
|
||||
}
|
||||
|
||||
tmpName.configure(config);
|
||||
tmpName.startPolling();
|
||||
plugins.configure(config);
|
||||
plugins.startPolling();
|
||||
});
|
||||
|
||||
config.on('configUpdate', function () {
|
||||
|
|
@ -40,7 +40,7 @@ module.exports = function (options) {
|
|||
return logger.error('Error while reloading config');
|
||||
}
|
||||
|
||||
tmpName.configure(config);
|
||||
plugins.configure(config);
|
||||
logger.info('Config reloaded');
|
||||
});
|
||||
});
|
||||
|
|
@ -89,7 +89,7 @@ module.exports = function (options) {
|
|||
routes.init({
|
||||
app: app,
|
||||
lamassuConfig: config,
|
||||
tmpName: tmpName,
|
||||
plugins: plugins,
|
||||
authMiddleware: authMiddleware,
|
||||
mock: options.mock
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue