src/transport.js
function loadResources( state, filePath ) {
	var resourcePath = path.resolve( process.cwd(), filePath );
	return getResources( resourcePath )
		.then( function( list ) {
			return when.all( _.map( _.filter( list ), loadModule.bind( undefined, state ) ) )
				.then( function( lists ) {
					return _.flatten( lists );
				} );
		} );
}
function loadResources( state, filePath ) {
	var resourcePath = path.resolve( process.cwd(), filePath );
	return getResources( resourcePath )
		.then( function( list ) {
			return when.all( _.map( _.filter( list ), loadModule.bind( undefined, state ) ) )
				.then( function( lists ) {
					return _.flatten( lists );
				} );
		} );
}
function loadResources ( state , filePath ) { var resourcePath = path . resolve ( process . cwd ( ) , filePath ) ; return getResources ( resourcePath ) . then ( function ( list ) { return when . all ( _ . map ( _ . filter ( list ) , loadModule . bind ( undefined , state ) ) ) . then ( function ( lists ) { return _ . flatten ( lists ) ; } ) ; } ) ; }
loadResources from path and returns the modules once they're loaded
loadResources from path and returns the modules once they re loaded