I am deploying 5 or 6 applications of various types (web, cocoa apps,
etc) via the multistage extension to cap. Things are working great,
but I was looking to make a task that would fire off the deploy task
for each stage I have. I have been combing through capistrano and
multistage source, but I am new to capistrano and still am not sure
how to call best call other tasks.

I think something along the lines of this would work, but it sure
looks ugly:

/config/deploy.rb
  set :stages, %w(all app_one app_two)
  set :default_stage, 'all'
  require 'capistrano/ext/multistage'
/config/all.rb
  task :deploy do
    load *app_one
    deploy.tasks.deploy
    load *app_two
    deploy.tasks.deploy
  end
/config/app_one.rb
  task :deploy do
    # actual deployment stuff
  end
/config/app_two.rb
  task :deploy do
    # actual deployment stuff
  end

$>cap deploy

Any ideas? Thanks!
--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---

Reply via email to