UNPKG

@reactivehub/cli

Version:
36 lines (29 loc) 1.62 kB
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _chalk = require('chalk'); var _chalk2 = _interopRequireDefault(_chalk); var _index = require('./index'); var _index2 = _interopRequireDefault(_index); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.default = { testing: (eventId = '') => _index2.default.info(`Validating event${eventId ? ` ${eventId} ` : ' '}configuration data.`), totalBeignProcessed: (total = 0) => _index2.default.info(`Checking ${total} event(s).`), hasErrors: (totalErrors = 0, logFileLink = null, deploy = false) => { let errorMessage = _chalk2.default.red(`Test failed, ${totalErrors} events with errors${deploy ? ', could not deploy' : ''}.\n`); if (logFileLink) errorMessage += _chalk2.default.red(`This is not a problem with Reactivehub services, check the log file for more info ${logFileLink}\n`); _index2.default.error(errorMessage); console.log(''); }, eventErrors: (eventId, total) => _index2.default.error(`Event ${eventId} ${total} error(s) found.`), testPassed: (deploy = false) => { console.log(''); _index2.default.success(_chalk2.default.green(`Event config test passed${deploy ? ', starting deploy.' : '.'}`)); console.log(''); }, startingDeploy: () => _index2.default.info('Event deploy started.'), eventDeploySuccess: eventId => _index2.default.success(`Event "${eventId}" successfully deployed.`), deployFinished: total => _index2.default.success(`${total} events successfully deployed.`) }; //# sourceMappingURL=checkDeploy.js.map