1

Where can I find the capifony/capistrano tasks in order to overwrite them.

I want when I run cap deploy:setup to modify it to add an extra symlink to accomodate my server structure. Is that possible? Or at least to write a new task to do this.

user1236048
  • 5,542
  • 7
  • 50
  • 87

1 Answers1

4

List of cap tasks : http://capitate.rubyforge.org/recipes/deploy.html

To override tasks do something like that :

 namespace :deploy do
  task :start do ; end
  task :stop do ; end
  task :restart do ; end
  task :update_code do ; end #override this task to prevent capistrano to upload on servers
  task :symlink do ; end #don't create the current symlink to the last release
 end
Julien Pellet
  • 2,743
  • 1
  • 18
  • 20
  • 2
    Where is the correct place to override tasks? lib/capistrano/tasks/task_name.cap or Capfile or config/deploy.rb? – csi Jul 15 '14 at 15:33