File tree Expand file tree Collapse file tree 2 files changed +12
-6
lines changed
Expand file tree Collapse file tree 2 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,8 @@ grunt.registerTask( "docs", function() {
4646} ) ;
4747
4848grunt . registerTask ( "clean-all" , function ( ) {
49- var rimraf = require ( "rimraf" ) ;
49+ var rimraf = require ( "rimraf" ) ,
50+ retry = require ( "./lib/retrydb" ) ;
5051
5152 // clean repo checkouts
5253 rimraf . sync ( config . repoDir ) ;
@@ -56,14 +57,15 @@ grunt.registerTask( "clean-all", function() {
5657 rimraf . sync ( "last-action" ) ;
5758
5859 // clean retrydb
59- rimraf . sync ( " retry.db" ) ;
60+ rimraf . sync ( retry . dbPath ) ;
6061} ) ;
6162
6263grunt . registerTask ( "clean" , function ( ) {
63- var rimraf = require ( "rimraf" ) ;
64+ var rimraf = require ( "rimraf" ) ,
65+ retry = require ( "./lib/retrydb" ) ;
6466
6567 rimraf . sync ( "last-action" ) ;
66- rimraf . sync ( " retry.db" ) ;
68+ rimraf . sync ( retry . dbPath ) ;
6769} ) ;
6870
6971grunt . registerTask ( "setup-pluginsdb" , function ( ) {
Original file line number Diff line number Diff line change 1- var sqlite = require ( "sqlite3" ) ;
1+ var sqlite = require ( "sqlite3" ) ,
2+ path = require ( "path" ) ,
3+ filename = path . join ( __dirname , "../retry.db" ) ;
24
35var db ;
46
57function connect ( fn ) {
6- db = new sqlite . Database ( "retry.db" , fn ) ;
8+ db = new sqlite . Database ( filename , fn ) ;
79}
810
911function auto ( fn ) {
@@ -26,6 +28,8 @@ function auto( fn ) {
2628}
2729
2830module . exports = {
31+ dbPath : filename ,
32+
2933 log : auto ( function ( method ) {
3034 var str ,
3135 fn = function ( ) { } ,
You can’t perform that action at this time.
0 commit comments