Yes. Ironically, I saw your trac comment a couple hours ago and
updated the patch to exactly this usage.
I do have another concern for finalize_update:
stamp = Time.now.utc.strftime("%Y%m%d%H%M.%S")
Means that all the servers in the role will get these files time
stamped with the current date of the deploying machine. If the
deploying machine's clock is off, this could create odd timestamps on
the file when looking at the server timestamps. I would xpect the
server time to be more authoritative?
Maybe it would be better to construct the date server-side like so:
touch -t `date +%Y%m%d%H%M.%S` foo
Therefore:
run "find #{asset_paths} -print0 | xargs -0 touch -t `date +%Y%m%d%H%M.
%S`; true", :env => { "TZ" => "UTC" }
On Aug 18, 2:32 am, "Alex Grigorovich" <[EMAIL PROTECTED]>
wrote:
> > The problem with find | xargs is that it doesn't handle quotes in file
> > system names
>
> ... which can be solved with find -print0 | xargs -0:
>
> [EMAIL PROTECTED] /tmp% find . -name f* -print0 | xargs -0 echo
> ./f"oo
>
> --
> Alex
--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---