src/indexOld.js
function getVersionRoute(machineName, versionKey) {
        let manifest = getManifest();

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

        if (!manifest.machines[machineName].versions[versionKey]) {
            throw new Error("Version does not exists");
        }

        return manifest.machines[machineName].versions[versionKey].route;
    }
function getVersionRoute(machineName, versionKey) {
        let manifest = getManifest();

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

        if (!manifest.machines[machineName].versions[versionKey]) {
            throw new Error("Version does not exists");
        }

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