Thursday, April 21, 2011

Run all Namespace Tasks with Capistrano

I have a namespace with different tasks:

namespace :mytest do
  task :setup do; ... end;
  task :task1 do; ... end;
  task :task2 do; ... end;
end

When I run cap mytest I get the task `backup' does not exist.

How do I create a command which calls all tasks?

From stackoverflow
  • task :default do
      setup
      task1
      task2
    end

0 comments:

Post a Comment

Note: Only a member of this blog may post a comment.