1
0
mirror of https://github.com/JuanCanham/HackMyResume.git synced 2025-05-10 07:47:07 +01:00

Fix CREATE verb output.

This commit is contained in:
hacksalot
2016-01-09 15:58:39 -05:00
parent 3aabb5028d
commit bece335a64
2 changed files with 6 additions and 5 deletions

View File

@ -44,11 +44,11 @@ Implementation of the 'create' verb for HackMyResume.
_.each( src, function( t ) {
var safeFmt = opts.format.toUpperCase();
this.fireStat( HME.bc, { fmt: safeFmt, file: t } );
this.stat( HME.beforeCreate, { fmt: safeFmt, file: t } );
MKDIRP.sync( PATH.dirname( t ) ); // Ensure dest folder exists;
var RezClass = require('../core/' + safeFmt.toLowerCase() + '-resume' );
RezClass.default().save(t);
this.fireStat( HME.ac, { fmt: safeFmt, file: t } );
this.stat( HME.afterCreate, { fmt: safeFmt, file: t } );
}, this);
this.stat( HME.end );