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

    const done = this.async();

    const prompts = [
        {
            type: 'list',
            name: 'deploymentApplicationType',
            message: 'Which *type* of application would you like to deploy?',
            choices: [
                {
                    value: 'monolith',
                    name: 'Monolithic application'
                },
                {
                    value: 'microservice',
                    name: 'Microservice application'
                }
            ],
            default: 'monolith'
        }
    ];

    this.prompt(prompts).then(props => {
        this.deploymentApplicationType = props.deploymentApplicationType;
        done();
    });
}
function askForApplicationType() {
    if (this.regenerate) return;

    const done = this.async();

    const prompts = [
        {
            type: 'list',
            name: 'deploymentApplicationType',
            message: 'Which *type* of application would you like to deploy?',
            choices: [
                {
                    value: 'monolith',
                    name: 'Monolithic application'
                },
                {
                    value: 'microservice',
                    name: 'Microservice application'
                }
            ],
            default: 'monolith'
        }
    ];

    this.prompt(prompts).then(props => {
        this.deploymentApplicationType = props.deploymentApplicationType;
        done();
    });
}
function askForApplicationType ( ) { if ( this . regenerate ) return ; const done = this . async ( ) ; const prompts = [ { type : 'list' , name : 'deploymentApplicationType' , message : 'Which *type* of application would you like to deploy?' , choices : [ { value : 'monolith' , name : 'Monolithic application' } , { value : 'microservice' , name : 'Microservice application' } ] , default : 'monolith' } ] ; this . prompt ( prompts ) . then ( props => { this . deploymentApplicationType = props . deploymentApplicationType ; done ( ) ; } ) ; }
Ask For Application Type
Ask For Application Type