/**
 * Define index tasks.
 * @module ci.tasks.indexTasks
 * @author "ci.worker.generateStructure"
 *
 */
var util = require('util'),
    lib = require('../../lib'),
    string = lib.string,
    helpers = require('../helpers'),
    t = helpers.taskDefineHelper,
    apeman = require('apeman'),
    currentProject = apeman.currentProject,
    indexConfig = currentProject.lookupRequire('ci/config/index-config');

exports.indexFiles = t.generateIndexFiles(indexConfig);

exports.indexCiTasks = t.generateCiTasksIndex({
    dir: 'ci/tasks'
});

/**
 * Generate index files.
 * @name ci.tasks.index
 * @type {object}
 */
exports.index = Object.keys(exports);