lib/robol.js
function(cfg, callback) {
  // Input dir
  var inputPath = cfg.input_dir;

  // Output dir
  var outputPath = cfg.output_dir;

  if (inputPath && outputPath) {
    new gear.Queue({registry: taskRegistry}) // register tasks
    .log(formatLog('Copying directory:', inputPath))
    .copyDir({input: inputPath, output: outputPath}, callback)
    .log(formatLog('Copied directory to: ', outputPath))
    .run(callback);
  } else {
    callback();
  }
}
function(cfg, callback) {
  // Input dir
  var inputPath = cfg.input_dir;

  // Output dir
  var outputPath = cfg.output_dir;

  if (inputPath && outputPath) {
    new gear.Queue({registry: taskRegistry}) // register tasks
    .log(formatLog('Copying directory:', inputPath))
    .copyDir({input: inputPath, output: outputPath}, callback)
    .log(formatLog('Copied directory to: ', outputPath))
    .run(callback);
  } else {
    callback();
  }
}
function ( cfg , callback ) { // Input dir var inputPath = cfg . input_dir ; // Output dir var outputPath = cfg . output_dir ; if ( inputPath && outputPath ) { new gear . Queue ( { registry : taskRegistry } ) // register tasks . log ( formatLog ( 'Copying directory:' , inputPath ) ) . copyDir ( { input : inputPath , output : outputPath } , callback ) . log ( formatLog ( 'Copied directory to: ' , outputPath ) ) . run ( callback ) ; } else { callback ( ) ; } }
Copies single directory

@param {Object} cfg Build configuration
@param {Function} callback Task complete callback
Copies single directory