/**
 * Helper to define task.
 * @module task.helpers.TaskDefineHelper.
 * @author "{{authorModule}}"
 *
 */

var workerPath = '{{workerPath}}';

{{#each workers}}
/**
 * Task definition to {{readableName}}.
 * @function task.helpers.TaskDefineHelper.{{name}}Task
 * @param {object} config - Task configuration.
 * @returns {object} - Task definition object.
 */
exports.{{name}} = function (config) {
    return {
        worker: {
            path: workerPath,
            key: '{{name}}'
        },
        config: config
    };
};
{{/each}}
