It seems unlikely that you'd be able to do a glob -- or at least, not a Ruby
glob. Remember that Capistrano is only running on the local host -- the
other end doesn't even need to have Ruby installed.

Ah -- Jamis replied as I typed. Looks like you can download a tree.

I would also guess that you could figure something out with tar or zip -- or
better, if the idea is to commit things to version control which weren't
already there, you could have the server check them in directly.

Oh, and your analogy does seem apt -- another thing Capistrano shares with
regexes is that, while you can technically use them for anything, at a
certain point, you may run into serious limitations.

That said, I do use Capistrano, in production, and I'm happy with it. That
"certain point" is when you get into the hundreds of servers, and I
currently manage two or three.

On Wed, Oct 8, 2008 at 9:04 AM, Peter Booth <[EMAIL PROTECTED]>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