mirror of
https://github.com/aljazceru/cyphernode.git
synced 2025-12-19 05:35:17 +01:00
Migrated to postgres and added pub32 tests
This commit is contained in:
30
cyphernodeconf_docker/prompters/200_postgres.js
Normal file
30
cyphernodeconf_docker/prompters/200_postgres.js
Normal file
@@ -0,0 +1,30 @@
|
||||
const chalk = require('chalk');
|
||||
|
||||
const name = 'postgres';
|
||||
|
||||
const capitalise = function( txt ) {
|
||||
return txt.charAt(0).toUpperCase() + txt.substr(1);
|
||||
};
|
||||
|
||||
const prefix = function() {
|
||||
return chalk.green(capitalise(name)+': ');
|
||||
};
|
||||
|
||||
module.exports = {
|
||||
name: function() {
|
||||
return name;
|
||||
},
|
||||
prompts: function( utils ) {
|
||||
return [
|
||||
{
|
||||
type: 'password',
|
||||
name: 'postgres_password',
|
||||
default: utils.getDefault( 'postgres_password' ),
|
||||
message: prefix()+'Password of Postgres cyphernode user?'+utils.getHelp('postgres_password'),
|
||||
filter: utils.trimFilter,
|
||||
}];
|
||||
},
|
||||
templates: function( props ) {
|
||||
return ['pgpass'];
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user