coffeescriptcakefile

call another task from a task


How can I call another task from a task in Cakefile ?

I tried tasks[taskName].action options but didn't work because tasks in not bound in the scope of my Cakefile:

  /home/omer/___/Cakefile:52
  return console.log(tasks);
                     ^
  ReferenceError: tasks is not defined
  ...

Any ideas ?


Solution

  • Use invoke to invoke another task in the same cakefile.