<NME> prompting.js
<BEF> "use strict";

/**
 * Step 2
 * Where you prompt users for options (where you'd call this.prompt()).
var path = require('path'),
    chalk = require('chalk'),
    assign = require('../util/assign'),
    requireFolder = require('../util/require-folder'),
    questions = requireFolder(path.resolve(__dirname, '../questions'));

module.exports = {
    /**

  return this
    .prompt(questions)
    .then(answers => {
      this.answers = Object.assign(this.answers || {}, answers);
      done();
    });
}

module.exports = {
  askApp: function () {
    askQuestions.call(this, 'Application', questions.app, this.async());
  },

  askConfig: function () {
    askQuestions.call(this, 'Configuration', questions.config, this.async());
  },

  askLogger: function () {
    askQuestions.call(this, 'Logger', questions.logger, this.async());
  },

  askBlueprint: function () {
    askQuestions.call(this, 'Blueprint', questions.blueprint, this.async());
  },

  askController: function () {
    askQuestions.call(this, 'Controller', questions.controller, this.async());
  },

  askHook: function () {
    askQuestions.call(this, 'Hook', questions.hook, this.async());
  },

  askCron: function () {
    askQuestions.call(this, 'Cron', questions.cron, this.async());
  },

  askSwagger: function () {
    askQuestions.call(this, 'Swagger', questions.swagger, this.async());
  },

  askAuthentication: function () {
    askQuestions.call(this, 'Authentication', questions.authentication, this.async());
  },

  askService: function () {
    askQuestions.call(this, 'Service', questions.service, this.async());
  }
};

<MSG> Remove require-folder util

<DFF> @@ -6,8 +6,7 @@
 var path = require('path'),
     chalk = require('chalk'),
     assign = require('../util/assign'),
-    requireFolder = require('../util/require-folder'),
-    questions = requireFolder(path.resolve(__dirname, '../questions'));
+    questions = require('../questions');
 
 module.exports = {
     /**

{'addition_count': 1, 'commit_subject': 'Remove require-folder util', 'deletion_count': 2, 'file_extension': '.js', 'lang': 'js', 'license': 'mit', 'repo_name': 'ghaiklor/generator-sails-rest-api'}