-
-
Save bmeck/3372344 to your computer and use it in GitHub Desktop.
Revisions
-
bmeck renamed this gist
Aug 16, 2012 . 1 changed file with 4 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -17,17 +17,18 @@ }) function createDirectories(list, callback) { async.forEachSeries(list, createDirectory, function(err, results) { callback(true) }) function createDirectory(name, next) { fs.mkdir('./app', 0755, function(e) { if (e) { console.error('Error while creating', name) next(e) } else { console.warn(' - Created directory:', name) next() } }) } -
Tommy Bergeron revised this gist
Aug 16, 2012 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -18,8 +18,8 @@ function createDirectories(list, callback) { async.map(list, createDirectory, function(err, results) { callback(true) }) function createDirectory(name) { fs.mkdir('./app', 0755, function(e) { -
Tommy Bergeron revised this gist
Aug 16, 2012 . 1 changed file with 18 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,21 @@ var directories = [ './app', './app/controllers', './app/helpers', './app/repositories', './app/validations', './app/views', './app/views/partials' ] createDirectories(directories, function(result) { if (result) { writeBasicAppFiles(function() { console.warn('New ThinAir has been created successfully!') }) } }) function createDirectories(list, callback) { async.map(list, createDirectory, function(err, results) { callback() -
Tommy Bergeron created this gist
Aug 16, 2012 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,16 @@ function createDirectories(list, callback) { async.map(list, createDirectory, function(err, results) { callback() }); function createDirectory(name) { fs.mkdir('./app', 0755, function(e) { if (e) { console.error('Error while creating', name) callback(false) } else { console.warn(' - Created directory:', name) } }) } }