From 65cb342e09f8c1aa70d3995cd15ec69b8aaad38c Mon Sep 17 00:00:00 2001 From: Noah Santorello Date: Mon, 21 Jul 2014 09:51:04 -0400 Subject: [PATCH] CLI outputs relative path of files, not just filename --- lib/seed/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/seed/index.js b/lib/seed/index.js index 57a7622f..06dbb528 100644 --- a/lib/seed/index.js +++ b/lib/seed/index.js @@ -106,7 +106,7 @@ Seeder.prototype._writeNewSeed = function(name) { return Promise.promisify(fs.writeFile, fs)( path.join(config.directory, filename), tmpl(config.variables || {}) - ).return(filename); + ).return(path.join(this.config.directory, filename)); }; }; @@ -119,8 +119,8 @@ Seeder.prototype._waterfallBatch = function(seeds) { var current = Promise.bind({failed: false, failedOn: 0}); var log = []; _.each(seeds, function(seed, i) { - var name = seed; - seed = require(path.join(workingDir, seedDirectory, name)); + var name = path.join(seedDirectory, name); + seed = require(path.join(workingDir, name)); // Run each seed file. current = current.then(function() {