@@ -14,14 +14,14 @@ Generator.prototype.askForOverwrite = function askForOverwrite() {
1414 var cb = this . async ( ) ;
1515
1616 // TODO: Any yeoman.util function to handle this?
17- var fileExists = fs . existsSync ( this . env . cwd + '/app/scripts/' + buildRelativePath ( this . fileName ) + ".js" ) ;
17+ var fileExists = fs . existsSync ( this . env . cwd + '/app/scripts/' + buildRelativePath ( this . fileName ) + ".js" ) ;
1818 if ( fileExists ) {
1919 var prompts = [ {
20- name : 'overwriteDecorator' ,
21- message : 'Would you like to overwrite existing decorator?' ,
22- default : 'Y/n' ,
23- warning : 'Yes: Decorator will be replaced.'
24- } ] ;
20+ name : 'overwriteDecorator' ,
21+ message : 'Would you like to overwrite existing decorator?' ,
22+ default : 'Y/n' ,
23+ warning : 'Yes: Decorator will be replaced.'
24+ } ] ;
2525
2626 this . prompt ( prompts , function ( err , props ) {
2727 if ( err ) {
@@ -42,14 +42,14 @@ Generator.prototype.askForOverwrite = function askForOverwrite() {
4242Generator . prototype . askForNewName = function askForNewName ( ) {
4343 var cb = this . async ( ) ;
4444
45- if ( this . overwriteDecorator === undefined || this . overwriteDecorator === true ) {
45+ if ( this . overwriteDecorator === undefined || this . overwriteDecorator === true ) {
4646 cb ( ) ;
4747 return ;
4848 }
49- else {
49+ else {
5050 var prompts = new Array ( ) ;
5151 prompts . push ( {
52- name : 'decortatorName' ,
52+ name : 'decortatorName' ,
5353 message : 'Alternative name for the decorator:'
5454 } ) ;
5555
@@ -65,10 +65,10 @@ Generator.prototype.askForNewName = function askForNewName() {
6565} ;
6666
6767Generator . prototype . createDecoratorFiles = function createDecoratorFiles ( ) {
68- this . appTemplate ( 'decorator' , 'scripts/' + buildRelativePath ( this . fileName ) ) ;
68+ this . appTemplate ( 'decorator' , 'scripts/' + buildRelativePath ( this . fileName ) ) ;
6969 this . addScriptToIndex ( buildRelativePath ( this . fileName ) ) ;
7070} ;
7171
7272function buildRelativePath ( fileName ) {
73- return 'decorators/' + fileName + "Decorator" ;
73+ return 'decorators/' + fileName + "Decorator" ;
7474}
0 commit comments