generators/docker-prompts.js
function askForClustersMode() {
    if (this.regenerate) return;

    const clusteredDbApps = [];
    this.appConfigs.forEach((appConfig, index) => {
        if (appConfig.prodDatabaseType === 'mongodb' || appConfig.prodDatabaseType === 'couchbase') {
            clusteredDbApps.push(this.appsFolders[index]);
        }
    });
    if (clusteredDbApps.length === 0) return;

    const done = this.async();

    const prompts = [
        {
            type: 'checkbox',
            name: 'clusteredDbApps',
            message: 'Which applications do you want to use with clustered databases (only available with MongoDB and Couchbase)?',
            choices: clusteredDbApps,
            default: this.clusteredDbApps
        }
    ];

    this.prompt(prompts).then(props => {
        this.clusteredDbApps = props.clusteredDbApps;
        setClusteredApps.call(this);

        done();
    });
}
function askForClustersMode() {
    if (this.regenerate) return;

    const clusteredDbApps = [];
    this.appConfigs.forEach((appConfig, index) => {
        if (appConfig.prodDatabaseType === 'mongodb' || appConfig.prodDatabaseType === 'couchbase') {
            clusteredDbApps.push(this.appsFolders[index]);
        }
    });
    if (clusteredDbApps.length === 0) return;

    const done = this.async();

    const prompts = [
        {
            type: 'checkbox',
            name: 'clusteredDbApps',
            message: 'Which applications do you want to use with clustered databases (only available with MongoDB and Couchbase)?',
            choices: clusteredDbApps,
            default: this.clusteredDbApps
        }
    ];

    this.prompt(prompts).then(props => {
        this.clusteredDbApps = props.clusteredDbApps;
        setClusteredApps.call(this);

        done();
    });
}
function askForClustersMode ( ) { if ( this . regenerate ) return ; const clusteredDbApps = [ ] ; this . appConfigs . forEach ( ( appConfig , index ) => { if ( appConfig . prodDatabaseType === 'mongodb' || appConfig . prodDatabaseType === 'couchbase' ) { clusteredDbApps . push ( this . appsFolders [ index ] ) ; } } ) ; if ( clusteredDbApps . length === 0 ) return ; const done = this . async ( ) ; const prompts = [ { type : 'checkbox' , name : 'clusteredDbApps' , message : 'Which applications do you want to use with clustered databases (only available with MongoDB and Couchbase)?' , choices : clusteredDbApps , default : this . clusteredDbApps } ] ; this . prompt ( prompts ) . then ( props => { this . clusteredDbApps = props . clusteredDbApps ; setClusteredApps . call ( this ) ; done ( ) ; } ) ; }
Ask For Clusters Mode
Ask For Clusters Mode