lib/gesalakacula.js
function queueLauncherKey(asKey, subprocess) {
  return function processTarget(targets) {
    return Object
      .keys(targets)
      .map(function (targetName) {
        return subprocess(targets[targetName])
          .map(function (launcher) {
            launcher[asKey] = targetName;
            return launcher;
          });
      })
      .reduce(function (a, b) {
        // flatten
        return a.concat(b);
      }, []);
  };
}
function queueLauncherKey(asKey, subprocess) {
  return function processTarget(targets) {
    return Object
      .keys(targets)
      .map(function (targetName) {
        return subprocess(targets[targetName])
          .map(function (launcher) {
            launcher[asKey] = targetName;
            return launcher;
          });
      })
      .reduce(function (a, b) {
        // flatten
        return a.concat(b);
      }, []);
  };
}
function queueLauncherKey ( asKey , subprocess ) { return function processTarget ( targets ) { return Object . keys ( targets ) . map ( function ( targetName ) { return subprocess ( targets [ targetName ] ) . map ( function ( launcher ) { launcher [ asKey ] = targetName ; return launcher ; } ) ; } ) . reduce ( function ( a , b ) { // flatten return a . concat ( b ) ; } , [ ] ) ; } ; }
Generic in queue key assignment.
@description
This will assign the  in the result fo a sub process.
@param {String} asKey the name to use in the launcher environment
for the current key in the target.
@param {Function} subprocess process to use as launcher environment
@returns {Function} A target processor.
Generic in queue key assignment .