从任务中调用另一个任务

时间:2013-04-13 08:04:22

标签: coffeescript cakefile

如何从Cakefile中的任务调用另一个任务?

我尝试tasks[taskName].action options但是没有用,因为tasks没有绑定在我的Cakefile范围内:

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

有什么想法吗?

1 个答案:

答案 0 :(得分:3)

使用invoke在同一个cakefile中调用另一个任务。

相关问题