lib/definitions/aggregate.js
function (cmd, callback) {
    var cmdName = dotty.get(cmd, this.definitions.command.name);

    if (!cmdName) {
      var err = new Error('command has no command name in ' + this.definitions.command.name);
      debug(err);
      throw err;
    }

    var version = 0;
    if (!!this.definitions.command.version) {
      version = dotty.get(cmd, this.definitions.command.version);
    }

    var command = this.getCommand(cmdName, version);
    if (!command) {
      var err = new Error('Command "' + cmdName + '" not found!');
      debug(err);
      throw err;
    }

    command.checkPreLoadConditions(cmd, callback);
  }
function (cmd, callback) {
    var cmdName = dotty.get(cmd, this.definitions.command.name);

    if (!cmdName) {
      var err = new Error('command has no command name in ' + this.definitions.command.name);
      debug(err);
      throw err;
    }

    var version = 0;
    if (!!this.definitions.command.version) {
      version = dotty.get(cmd, this.definitions.command.version);
    }

    var command = this.getCommand(cmdName, version);
    if (!command) {
      var err = new Error('Command "' + cmdName + '" not found!');
      debug(err);
      throw err;
    }

    command.checkPreLoadConditions(cmd, callback);
  }
function ( cmd , callback ) { var cmdName = dotty . get ( cmd , this . definitions . command . name ) ; if ( ! cmdName ) { var err = new Error ( 'command has no command name in ' + this . definitions . command . name ) ; debug ( err ) ; throw err ; } var version = 0 ; if ( ! ! this . definitions . command . version ) { version = dotty . get ( cmd , this . definitions . command . version ) ; } var command = this . getCommand ( cmdName , version ) ; if ( ! command ) { var err = new Error ( 'Command "' + cmdName + '" not found!' ) ; debug ( err ) ; throw err ; } command . checkPreLoadConditions ( cmd , callback ) ; }
Checks for pre-load-conditions. This check will be done BEFORE the aggregate is locked and loaded.
@param {Object}         cmd            The command that was handled.
@param {Function}       callback       The function, that will be called when this action is completed.
`function(err){}`
Checks for pre - load - conditions . This check will be done BEFORE the aggregate is locked and loaded .