refactor to use method to determine app root path, instead of constantly using relative paths

This commit is contained in:
Iuri Matias 2017-02-19 20:01:42 -05:00
parent 73a536c52e
commit 3890b4a38e
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ var TemplateGenerator = function(templateName) {
};
TemplateGenerator.prototype.generate = function(destinationFolder, name) {
var templatePath = js.embarkPath(this.templateName);
var templatePath = fs.embarkPath(this.templateName);
console.log('Initializing Embark Template....'.green);
fs.copySync(templatePath, destinationFolder + name);