You can create separate tasks, but then call them from a single meta
"copyconfig" task:

  task :copyconfig_app, :roles => appservers do
  end

  task :copyconfig_db, :roles => dbservers do
  end

  task :copyconfig do
    copyconfig_app
    copyconfig_db
  end

- Jamis

On 3/3/09 10:26 AM, Gerhardus Geldenhuis wrote:
> Hi
> It would be nice to have something like the following:
> 
> namespace config
>   task :copyconfig, :roles => appservers
>    do_something
>   end
> 
>   task :copyconfig, :roles => dbservers
>     do_something
>   end
> end
> 
> the idea being that if you call config.copyconfig it will get called
> twice but for each role type it is definined.
> 
> If there is another way to achieve this I would gladly hear about it.
> 
> at them moment I have to differentiate my tasks by giving them
> different names for each task that deploys config to server types.
> 
> Regards
> 
> 
> > 


--~--~---------~--~----~------------~-------~--~----~
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