Updating fs module to the latest Node.js -- that's fs.readFile, not fs.cat, with string flags for fs.open

This commit is contained in:
Jeremy Ashkenas
2010-02-17 08:51:27 -05:00
parent 0490cb2920
commit dfa63839bb
5 changed files with 10 additions and 10 deletions

View File

@@ -31,7 +31,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.cat('Cakefile').addCallback (source) ->
fs.readFile('Cakefile').addCallback (source) ->
eval coffee.compile source
return print_tasks() unless args.length
for arg in args