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

This commit is contained in:
alunny
2010-02-20 14:45:16 -08:00
parent 08539a156e
commit 9503ea3040
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').addCallback (source) ->
fs.readFile 'Cakefile', (err, source) ->
eval coffee.compile source
return print_tasks() unless args.length
for arg in args