Rename traverseTree to traverseTreeSync

Also rename traverseTreeAsync to traverseTree
This commit is contained in:
Kevin Sawicki
2013-03-13 14:39:19 -07:00
parent 8fe9e31c08
commit 8dbcb44d06
5 changed files with 13 additions and 13 deletions

View File

@@ -39,14 +39,14 @@ class Config
templatePath = fs.join(templateConfigDirPath, path)
configPath = fs.join(@configDirPath, path)
fs.write(configPath, fs.read(templatePath))
fs.traverseTree(templateConfigDirPath, onConfigDirFile, (path) -> true)
fs.traverseTreeSync(templateConfigDirPath, onConfigDirFile, (path) -> true)
configThemeDirPath = fs.join(@configDirPath, 'themes')
onThemeDirFile = (path) ->
templatePath = fs.join(bundledThemesDirPath, path)
configPath = fs.join(configThemeDirPath, path)
fs.write(configPath, fs.read(templatePath))
fs.traverseTree(bundledThemesDirPath, onThemeDirFile, (path) -> true)
fs.traverseTreeSync(bundledThemesDirPath, onThemeDirFile, (path) -> true)
load: ->
@initializeConfigDirectory()

View File

@@ -70,7 +70,7 @@ class Project
paths = []
onFile = (path) => paths.push(path) unless @isPathIgnored(path)
onDirectory = -> true
fs.traverseTree(@getPath(), onFile, onDirectory)
fs.traverseTreeSync(@getPath(), onFile, onDirectory)
deferred.resolve(paths)
deferred.promise()