El 15/06/10 05:59, Robin Bowes escribió:
Hi,
I'm using copy_cache to speed up checkouts& I'm using :deply_via,
copy. I'd like to exclude .svn dirs from the tarball so I'm looking into
:copy_exclude
Do I need to include wildcards in that patterm to exclude .svn dirs, eg:
set :copy_exclude, "*/.svn/*"
Or can I just use .svn as the pattern:
set :copy_exclude, ".svn"
I had a look in lib/capistrano/recipes/deploy/strategy/copy.rb where
copy_exclude is used but I don't grok ruby enough to work out what it's
doing.
R.
Hi Robin,
To decide which files exclude or not Capistrano uses File.fnmatch.
This method gets as parameter a pattern in the way of shell globbing,
it's not a regular expression(more info about File.fnmatch[1]).
Then I suposse you need to use the first one.
Regards
[1] http://ruby-doc.org/core/classes/File.html#M002519
--
Rafa
--
* You received this message because you are subscribed to the Google Groups
"Capistrano" group.
* To post to this group, send email to [email protected]
* To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/capistrano?hl=en