lib/factories/internal.object.factory.js
function loadResources() {
        var resources = {};
        var resourcesDir = path.join(this.injector.rootDir, this.injector.servicesDir + '/resources');


        if (!fs.existsSync(resourcesDir)) {
            return resources;
        }

        var me = this;
        var resourceNames = fs.readdirSync(resourcesDir);

        _.each(resourceNames, function (resourceName) {
            if (resourceName.substring(resourceName.length - 3) !== '.js') {  // only dirs, not js files
                resources[resourceName] = me.injector.loadModule(utils.getCamelCase(resourceName + '.resource'));
            }
        });

        return resources;
    }
function loadResources() {
        var resources = {};
        var resourcesDir = path.join(this.injector.rootDir, this.injector.servicesDir + '/resources');


        if (!fs.existsSync(resourcesDir)) {
            return resources;
        }

        var me = this;
        var resourceNames = fs.readdirSync(resourcesDir);

        _.each(resourceNames, function (resourceName) {
            if (resourceName.substring(resourceName.length - 3) !== '.js') {  // only dirs, not js files
                resources[resourceName] = me.injector.loadModule(utils.getCamelCase(resourceName + '.resource'));
            }
        });

        return resources;
    }
function loadResources ( ) { var resources = { } ; var resourcesDir = path . join ( this . injector . rootDir , this . injector . servicesDir + '/resources' ) ; if ( ! fs . existsSync ( resourcesDir ) ) { return resources ; } var me = this ; var resourceNames = fs . readdirSync ( resourcesDir ) ; _ . each ( resourceNames , function ( resourceName ) { if ( resourceName . substring ( resourceName . length - 3 ) !== '.js' ) { // only dirs, not js files resources [ resourceName ] = me . injector . loadModule ( utils . getCamelCase ( resourceName + '.resource' ) ) ; } } ) ; return resources ; }
Load all resources into an object that can be injected
@returns {{}}
Load all resources into an object that can be injected