updating to latest Node (0.1.3) API -- callbacks, not promises

This commit is contained in:
Jeremy Ashkenas
2010-02-21 14:06:01 -05:00
parent bea40a7a92
commit 1f2c8df5fa
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