lib/commands/execute.js
function (script, args, hash, data) {
    var deferred = Q.defer();
    this.events.emit('driver:message', {key: 'execute', value: JSON.parse(data).value, uuid: hash, hash: hash});
    deferred.resolve();
    return deferred.promise;
  }
function (script, args, hash, data) {
    var deferred = Q.defer();
    this.events.emit('driver:message', {key: 'execute', value: JSON.parse(data).value, uuid: hash, hash: hash});
    deferred.resolve();
    return deferred.promise;
  }
function ( script , args , hash , data ) { var deferred = Q . defer ( ) ; this . events . emit ( 'driver:message' , { key : 'execute' , value : JSON . parse ( data ) . value , uuid : hash , hash : hash } ) ; deferred . resolve ( ) ; return deferred . promise ; }
Sends out an event with the results of the `execute` call

@method _setExecuteCb
@param {function} script Script to execute
@param {array} args Arguments to pass to the function
@param {string} hash Unique hash of that fn call
@param {string} result Serialized JSON with the results of the call
@return {object} promise Exists promise
@private
Sends out an event with the results of the execute call