Like so many others I saw on Googleverse, I fell prey to the File.exists? trap File.exists? , which, of course, checks your local file system, and not the server you are deploying to.
I found one result that used shell hacking, for example:
if [[ -d
but this is not very good with me, unless it was well wrapped in the Ruby method.
Has anyone decided this is elegant?
ruby file exists capistrano
Teflon Ted Nov 02 '09 at 14:23 2009-11-02 14:23
source share