Sean Cribbs wrote:
> Use File.dirname(__FILE__) + "/../" inside script/spin to get the 
> directory above script.
>
> Sean Cribbs
>   
Thanks, but if I run script/spin from RAILS_ROOT, that gives me  
"script/../"  and if I run spin directly from scripts/ it gives
"./../",, neither of which tell me much.  What I'm looking for is
something like "/var/rails/app/clientname/current/script", that I can
then run through a regex to extract "clientname" which would tell me
everything I need to know.

-- 
http://www.5valleys.com/


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