1

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 ?

sinan
  • 6,809
  • 6
  • 38
  • 67

1 Answers1

3

Use invoke to invoke another task in the same cakefile.

Ven
  • 19,015
  • 2
  • 41
  • 61
  • Yes, it's on coffeescript.org : `ou can use the invoke function: invoke 'build'` – Ven Apr 13 '13 at 11:22