Peter,

You can use download to grab a directory tree as well, but not a glob.  
However, it is a LOT slower than simply creating a tgz file on the  
server and downloading that.

   download "/opt/nginx/conf", "existing/$CAPISTRANO:HOST$"

- Jamis

On Oct 8, 2008, at 8:04 AM, Peter Booth wrote:

> First: Capistrano is awesome, it is for sysadmin  like regex is to  
> text processing .
>
> Clearly something where the benefits increase geometrically with  
> experience.
>
> Second: is there a way to download a directory tree or glob?
>
> A scenario might be retrieving configuration files that were never  
> committed to svn.
> The following works for individual files:
>
> role :web,  "ws1","ws2","ws3"
> task :collect_existing, :roles  => :web do
>   download "/opt/nginx/conf/nginx.conf", "existing/$CAPISTRANO:HOST$/ 
> conf/nginx.conf"
> end
>
>
>
> >


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