Skip to content

Commit

Permalink
Remove the require for child_process since we don't use it anymore
Browse files Browse the repository at this point in the history
Add a check for "default" engine as we do for the other generators, and
replace it with ejs
  • Loading branch information
larzconwell committed Jan 13, 2013
1 parent 902e262 commit e7a7bda
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion bin/cli.js
Expand Up @@ -2,7 +2,6 @@

// Dependencies
var geddy = require('../lib/geddy')
, exec = require('child_process').exec
, path = require('path')
, utils = require('utilities')
, parseopts = require('../lib/parseopts');
Expand Down
3 changes: 2 additions & 1 deletion templates/Jakefile
Expand Up @@ -564,6 +564,7 @@ namespace('gen', function () {
throw new Error('No controller name specified.');
}


_writeTemplate(name, 'resource/controller', path.join('app', 'controllers'),
{inflection: 'plural', bare: false});
});
Expand Down Expand Up @@ -594,7 +595,7 @@ namespace('gen', function () {
if (!name) {
throw new Error('No controller name specified.');
}
if (!engine) {
if (!engine || engine == 'default') {
engine = 'ejs';
}

Expand Down

0 comments on commit e7a7bda

Please sign in to comment.