Permalink
Browse files

Fixed cake::printTasks to be backward compatible with node v0.4

  • Loading branch information...
1 parent 642fcbb commit f98c613ecc4cea9629541f2298974d6b3e0467bd @zzen committed Jan 5, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/cake.coffee
View
@@ -58,7 +58,8 @@ exports.run = ->
# Display the list of Cake tasks in a format similar to `rake -T`
printTasks = ->
- cakefilePath = path.join path.relative(__originalDirname, process.cwd()), 'Cakefile'
+ relative = path.relative or path.resolve
+ cakefilePath = path.join relative(__originalDirname, process.cwd()), 'Cakefile'
console.log "#{cakefilePath} defines the following tasks:\n"
for name, task of tasks
spaces = 20 - name.length

0 comments on commit f98c613

Please sign in to comment.