utils/classes.js
/**
   * Execute command and fire event with provided Event Emitter.
   * @param {Event} Event - Event object
   * @returns {Object|ChildProcess}
   */
Execute command and fire event with provided Event Emitter.
Execute command and fire event with provided Event Emitter .
function $exec (Event) {
    if (! _.isFunction(this.exec) || ! this.__isEvent(Event)) return;
    var command = Event.get('command');
    if (! _.isString(command)) throw 'Not executable command';
    var output = this.exec(command, Event.get('options'));
    Event.set('output', output);
    this.$fire(Event);
    return output;
  }
function $exec ( Event ) { if ( ! _ . isFunction ( this . exec ) || ! this . __isEvent ( Event ) ) return ; var command = Event . get ( 'command' ) ; if ( ! _ . isString ( command ) ) throw 'Not executable command' ; var output = this . exec ( command , Event . get ( 'options' ) ) ; Event . set ( 'output' , output ) ; this . $fire ( Event ) ; return output ; }
Execute command and fire event with provided Event Emitter.
Execute command and fire event with provided Event Emitter .