Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit e7a7bda0ff22838edd36b8d4d592bb1a63e4c7bf 1 parent 902e262
@larzconwell larzconwell authored
Showing with 2 additions and 2 deletions.
  1. +0 −1  bin/cli.js
  2. +2 −1  templates/Jakefile
View
1  bin/cli.js
@@ -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
3  templates/Jakefile
@@ -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';
}
Please sign in to comment.
Something went wrong with that request. Please try again.