Skip to content

Commit

Permalink
Merge branch 'v0.6'
Browse files Browse the repository at this point in the history
Conflicts:
	package.json
  • Loading branch information
mde committed Nov 10, 2012
2 parents c57babe + bfd1a0f commit 6717ff8
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 1 deletion.
5 changes: 5 additions & 0 deletions bin/cli.js
Expand Up @@ -136,6 +136,7 @@ if (cmds.length) {
cmds[0] == 'secret' ||
cmds[0] == 'db:init' ||
cmds[0] == 'auth' ||
cmds[0] == 'auth:update' ||
cmds[0] == 'console')
&& !cmds[1]) {
throw new Error(cmds[0] + ' command requires another argument.');
Expand Down Expand Up @@ -176,6 +177,10 @@ if (cmds.length) {
// Create DBs
cmd += 'auth:init';
break;
case 'auth:update':
// Create DBs
cmd += 'auth:update';
break;
case 'db:init':
// Create DBs
cmd += 'db:init';
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -36,4 +36,4 @@
"engines": {
"node": "*"
}
}
}
22 changes: 22 additions & 0 deletions templates/Jakefile
Expand Up @@ -739,6 +739,28 @@ namespace('gen', function () {

namespace('auth', function () {

task('update', {async: true}, function () {
// FIXME: Pull these version numbers out of geddy-passport's package.json
var cwd = process.cwd()
, packages = 'geddy-passport@0.0.x'
, updatePath = path.join('geddy-passport', 'app',
'helpers', 'passport');

console.log('Updating helper from ' + packages + '...');
jake.exec('npm uninstall ' + packages +
' && npm install ' + packages, function () {
var from = path.join(cwd, 'node_modules', updatePath)
, to = path.join(cwd, 'app', 'helpers');
jake.rmRf(path.join(to, 'passport'), {silent: true});
jake.cpR(from, to, {silent: true});
console.log('Updated helper from ' + packages);
console.log('Cleaning up...');
jake.exec('npm uninstall geddy-passport', function () {
complete();
});
}, {printStdout: true});
});

task('init', {async: true}, function () {
var go = false
// FIXME: Pull these version numbers out of geddy-passport's package.json
Expand Down

0 comments on commit 6717ff8

Please sign in to comment.