Commit c667a4c7 authored by Cédric Moreau's avatar Cédric Moreau

[fix] #1037 Migrate modules "check-config" "config"

parent 9c2e6ef5
......@@ -22,5 +22,7 @@ app/modules/peersignal.js
app/modules/plugin.js
app/modules/daemon.js
app/modules/export-bc.js
app/modules/check-config.js
app/modules/config.js
test/*.js
test/**/*.js
\ No newline at end of file
......@@ -60,4 +60,6 @@ app/modules/reset.js*
app/modules/peersignal.js*
app/modules/plugin.js*
app/modules/export-bc.js*
app/modules/daemon.js*
\ No newline at end of file
app/modules/daemon.js*
app/modules/check-config.js*
app/modules/config.js*
\ No newline at end of file
"use strict";
const co = require('co');
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
const constants = require('../lib/constants');
const wizard = require('../lib/wizard');
const logger = require('../lib/logger').NewLogger('wizard');
module.exports = {
duniter: {
cli: [{
name: 'check-config',
desc: 'Checks the node\'s configuration',
onConfiguredExecute: (server, conf, program, params, wizardTasks) => co(function*() {
yield server.checkConfig()
logger.warn('Configuration seems correct.');
})
}]
}
duniter: {
cli: [{
name: 'check-config',
desc: 'Checks the node\'s configuration',
onConfiguredExecute: (server) => __awaiter(this, void 0, void 0, function* () {
yield server.checkConfig();
logger.warn('Configuration seems correct.');
})
}]
}
};
//# sourceMappingURL=check-config.js.map
\ No newline at end of file
const constants = require('../lib/constants');
const wizard = require('../lib/wizard');
const logger = require('../lib/logger').NewLogger('wizard');
module.exports = {
duniter: {
cli: [{
name: 'check-config',
desc: 'Checks the node\'s configuration',
onConfiguredExecute: async (server:any) => {
await server.checkConfig()
logger.warn('Configuration seems correct.');
}
}]
}
}
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
module.exports = {
duniter: {
cli: [{
name: 'config',
desc: 'Register configuration in database',
// The command does nothing particular, it just stops the process right after configuration phase is over
onConfiguredExecute: (server, conf) => Promise.resolve(conf)
}]
}
}
duniter: {
cli: [{
name: 'config',
desc: 'Register configuration in database',
// The command does nothing particular, it just stops the process right after configuration phase is over
onConfiguredExecute: (server, conf) => Promise.resolve(conf)
}]
}
};
//# sourceMappingURL=config.js.map
\ No newline at end of file
"use strict";
import {ConfDTO} from "../lib/dto/ConfDTO"
module.exports = {
duniter: {
cli: [{
name: 'config',
desc: 'Register configuration in database',
// The command does nothing particular, it just stops the process right after configuration phase is over
onConfiguredExecute: (server:any, conf:ConfDTO) => Promise.resolve(conf)
}]
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment