lib/definitions/command.js
function (cmd, callback) {
    if (this.preLoadConditions.length === 0) {
      debug('no pre-load-condition for ' + this.name);
      return callback(null);
    }

    var self = this;
    async.eachSeries(this.preLoadConditions, function (preLoadCondition, callback) {
      if (preLoadCondition.version === undefined || preLoadCondition.version === null || preLoadCondition.version === self.version) {
        return preLoadCondition.check(cmd, callback);
      }
      callback(null);
    }, callback);
  }
function (cmd, callback) {
    if (this.preLoadConditions.length === 0) {
      debug('no pre-load-condition for ' + this.name);
      return callback(null);
    }

    var self = this;
    async.eachSeries(this.preLoadConditions, function (preLoadCondition, callback) {
      if (preLoadCondition.version === undefined || preLoadCondition.version === null || preLoadCondition.version === self.version) {
        return preLoadCondition.check(cmd, callback);
      }
      callback(null);
    }, callback);
  }
function ( cmd , callback ) { if ( this . preLoadConditions . length === 0 ) { debug ( 'no pre-load-condition for ' + this . name ) ; return callback ( null ) ; } var self = this ; async . eachSeries ( this . preLoadConditions , function ( preLoadCondition , callback ) { if ( preLoadCondition . version === undefined || preLoadCondition . version === null || preLoadCondition . version === self . version ) { return preLoadCondition . check ( cmd , callback ) ; } callback ( null ) ; } , callback ) ; }
Checks for pre-load conditions
@param {Object}         cmd            The command object.
@param {Function}       callback       The function, that will be called when this action is completed.
`function(err){}`
Checks for pre - load conditions