Revert "fixing api changes (no more promises) for node v.0.1.29"

This reverts commit 9503ea3040.
This commit is contained in:
Jeremy Ashkenas
2010-02-20 18:12:09 -05:00
parent 9503ea3040
commit 2d3f6b80c1
5 changed files with 9 additions and 9 deletions

View File

@@ -36,7 +36,7 @@ exports.run: ->
path.exists 'Cakefile', (exists) ->
throw new Error('Cakefile not found in ' + process.cwd()) unless exists
args: process.ARGV[2...process.ARGV.length]
fs.readFile 'Cakefile', (err, source) ->
fs.readFile('Cakefile').addCallback (source) ->
eval coffee.compile source
return print_tasks() unless args.length
for arg in args