src/indexOld.js
function getInstanceRoute(machineName, versionKey, instanceKey){

        let manifest = getManifest();

        let machine = manifest.machines[machineName];
        if (!machine) {
            throw new Error("Machine does not exists");
        }

        let version = machine.versions[versionKey];
        if (!version) {
            throw new Error("Version does not exists");
        }

        let instance = version.instances[instanceKey];
        if (!instance) {
            throw new Error("Instance does not exists");
        }

        return instance.route;
    }
function getInstanceRoute(machineName, versionKey, instanceKey){

        let manifest = getManifest();

        let machine = manifest.machines[machineName];
        if (!machine) {
            throw new Error("Machine does not exists");
        }

        let version = machine.versions[versionKey];
        if (!version) {
            throw new Error("Version does not exists");
        }

        let instance = version.instances[instanceKey];
        if (!instance) {
            throw new Error("Instance does not exists");
        }

        return instance.route;
    }
function getInstanceRoute ( machineName , versionKey , instanceKey ) { let manifest = getManifest ( ) ; let machine = manifest . machines [ machineName ] ; if ( ! machine ) { throw new Error ( "Machine does not exists" ) ; } let version = machine . versions [ versionKey ] ; if ( ! version ) { throw new Error ( "Version does not exists" ) ; } let instance = version . instances [ instanceKey ] ; if ( ! instance ) { throw new Error ( "Instance does not exists" ) ; } return instance . route ; }
Retrieve the instance's directory path
@method getInstanceRoute
@param {String} machineName The name of the machine
@param {String} versionKey The key of the version
@param {String} instanceKey The key of the instance
@returns {String} The route
Retrieve the instance s directory path