/**
 * Define visualize tasks.
 * @module ci.tasks.visualizeTasks
 * @author "ci.worker.generateStructure"
 *
 */
var path = require('path'),
    util = require('util'),
    helpers = require('../helpers'),
    t = helpers.taskDefineHelper;


/**
 * Visualize ci config files.
 * @name ci.tasks.visualizeCiConfig
 * @type {object}
 */
exports.visualizeCiConfig = t.generateVisualizeJsonFiles({
    srcPattern: 'ci/config/*-config.js',
    destFormat: 'ci/config/.visual/.%s-visual.json'
});

/**
 * Visualize ci config files.
 * @name ci.tasks.visualizeCiTasks
 * @type {object}
 */
exports.visualizeCiTasks = t.generateVisualizeJsonFiles({
    srcPattern: 'ci/tasks/*_tasks.js',
    destFormat: 'ci/tasks/.visual/.%s-visual.json'
});


/**
 * Visualize config files.
 * @name ci.tasks.visualize
 * @type {object}
 */
exports.visualize = [
    'visualizeCiConfig',
    'visualizeCiTasks'
];