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

  if (inputPath) {
    new gear.Queue({registry: taskRegistry}) // register tasks
    .log(formatLog('Removing directory:', inputPath))
    .removeDir({input: inputPath}, callback)
    .run(callback);
  } else {
    callback();
  }
}
function(cfg, callback) {
  // Input dir
  var inputPath = cfg.input_dir;

  if (inputPath) {
    new gear.Queue({registry: taskRegistry}) // register tasks
    .log(formatLog('Removing directory:', inputPath))
    .removeDir({input: inputPath}, callback)
    .run(callback);
  } else {
    callback();
  }
}
function ( cfg , callback ) { // Input dir var inputPath = cfg . input_dir ; if ( inputPath ) { new gear . Queue ( { registry : taskRegistry } ) // register tasks . log ( formatLog ( 'Removing directory:' , inputPath ) ) . removeDir ( { input : inputPath } , callback ) . run ( callback ) ; } else { callback ( ) ; } }
Removes single directory

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