Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
this.createJake = function () {
var jake = require('jake')
, dirpath = path.normalize(path.join(__dirname, '..', 'gen'))
, filepath = path.normalize(path.join(dirpath, 'Jakefile'));
this.jakeProgram = jake.program;
this.jakeLoader = jake.loader;
// Load Geddy's bundled Jakefile
this.jakeLoader.loadDirectory(path.join(dirpath, 'jakelib'));
this.jakeLoader.loadFile(filepath);
};