lib/group.js
function(callback) {
        var self = this;
        
        this.beet.client.getAllProcessInfo(function(err, processes) {

            if(processes)
            for(var i = processes.length; i--;) {

                var proc = processes[i],
                nameParts = proc.name.split('_');

                if(nameParts[0] != self.name) {
                    processes.splice(i, 1); 
                } else {
                    proc.group = nameParts[0];
                    proc.name = nameParts[1];
                }

            }   
            
            callback(err, processes);
        });
    }
function(callback) {
        var self = this;
        
        this.beet.client.getAllProcessInfo(function(err, processes) {

            if(processes)
            for(var i = processes.length; i--;) {

                var proc = processes[i],
                nameParts = proc.name.split('_');

                if(nameParts[0] != self.name) {
                    processes.splice(i, 1); 
                } else {
                    proc.group = nameParts[0];
                    proc.name = nameParts[1];
                }

            }   
            
            callback(err, processes);
        });
    }
function ( callback ) { var self = this ; this . beet . client . getAllProcessInfo ( function ( err , processes ) { if ( processes ) for ( var i = processes . length ; i -- ; ) { var proc = processes [ i ] , nameParts = proc . name . split ( '_' ) ; if ( nameParts [ 0 ] != self . name ) { processes . splice ( i , 1 ) ; } else { proc . group = nameParts [ 0 ] ; proc . name = nameParts [ 1 ] ; } } callback ( err , processes ) ; } ) ; }
Lists all the processes under the given group
Lists all the processes under the given group