clever-orm
Advanced tools
Comparing version 1.0.7 to 1.0.8
@@ -39,6 +39,6 @@ var injector = require( 'injector' ) | ||
console.log( 'Database is rebased' ); | ||
env.moduleLoader.shutdown(); | ||
process.exit( 0 ); | ||
} else { | ||
console.error('Error ' + env.config['clever-orm'].db.options.dialect, err); | ||
env.moduleLoader.shutdown(); | ||
process.exit( 1 ); | ||
} | ||
@@ -45,0 +45,0 @@ } |
@@ -103,4 +103,9 @@ var path = require( 'path' ) | ||
function forEachModelTypeComplete( err ) { | ||
console.log( err ? 'Error: ' : 'Seed completed with no errors', err ); | ||
env.moduleLoader.shutdown(); | ||
if ( err === null ) { | ||
console.log( 'Seed completed with no errors' ); | ||
process.exit( 0 ); | ||
} else { | ||
console.log( err ); | ||
process.exit( 1 ); | ||
} | ||
} | ||
@@ -107,0 +112,0 @@ ); |
@@ -14,3 +14,3 @@ 'use strict'; | ||
prompt: { | ||
cleverstack: { | ||
cleverOrmConfigPrompt: { | ||
options: { | ||
@@ -99,4 +99,4 @@ questions: [ | ||
grunt.registerTask( 'prompt:clever', [ 'prompt:cleverstack', 'createConfig' ] ); | ||
grunt.registerTask( 'createConfig', 'Creates a .json config file for database credentials', function ( ) { | ||
grunt.registerTask( 'prompt:cleverOrmConfig', [ 'prompt:cleverOrmConfigPrompt', 'cleverOrmCreateConfig' ] ); | ||
grunt.registerTask( 'cleverOrmCreateConfig', 'Creates a .json config file for database credentials', function ( ) { | ||
var conf = grunt.config( 'cleverstackorm' ) | ||
@@ -103,0 +103,0 @@ , obj = { |
{ | ||
"name": "clever-orm", | ||
"version": "1.0.7", | ||
"version": "1.0.8", | ||
"dependencies": { | ||
@@ -5,0 +5,0 @@ "mysql": "2.0.0-rc2", |
42953
862