From e7a7bda0ff22838edd36b8d4d592bb1a63e4c7bf Mon Sep 17 00:00:00 2001 From: Larz Conwell Date: Sun, 13 Jan 2013 14:14:47 -0500 Subject: [PATCH] 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 --- bin/cli.js | 1 - templates/Jakefile | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/cli.js b/bin/cli.js index ff58a42d..b1872a3e 100755 --- a/bin/cli.js +++ b/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'); diff --git a/templates/Jakefile b/templates/Jakefile index 29289bd0..3309ade5 100644 --- a/templates/Jakefile +++ b/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'; }