/**
 * Generate define model scaffold files.
 * @function task.worker.generateDefineModelScaffold
 * @param {object} config - Task configuration.
 * @param {string} settingFile - Setting file.
 * @param {string} destDir - Destination directory.
 * @param {function} callback - Callback when done.
 * @author Taka Okunishi
 */
var generateScaffold = require('./generate_scaffold');

module.exports = function (config, callback) {
    generateScaffold({
        settingFile: config.settingFile,
        tmplName: 'js/define_a_model.js.hbs',
        destDir: config.destDir,
        destNameFormat: 'define_%s_model.js'
    }, function (err) {
        callback(err);
    });
};
