Permalink
Browse files

Remove the require for child_process since we don't use it anymore

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 e7a7bda0ff22838edd36b8d4d592bb1a63e4c7bf
Showing with 2 additions and 2 deletions.
  1. +0 −1 bin/cli.js
  2. +2 −1 templates/Jakefile
View
@@ -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');
View
@@ -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});
});
@@ -594,7 +595,7 @@ namespace('gen', function () {
if (!name) {
throw new Error('No controller name specified.');
}
- if (!engine) {
+ if (!engine || engine == 'default') {
engine = 'ejs';
}

0 comments on commit e7a7bda

Please sign in to comment.