Thanks Shawn and Jamis, I used a combination for my local working copy as well.
Here's the final result if anyone is interested.
http://pastie.org/224773
On Sun, Jun 29, 2008 at 6:43 AM, Shawn Balestracci <[EMAIL PROTECTED]> wrote:
>
> You could put this in your environment.rb
> SVN_VERSION= `svn info .`.grep(/Revision/)[0].split(" ")[1]
>
> I think that Capistrano also drops a REVISION file in your application
> root when you deploy. So you could use this instead:
> SVN_VERSION= File.read("REVISION").chomp if File.exists?("REVISION")
>
>
> On Sun, Jun 29, 2008 at 1:02 AM, Anthony Ettinger <[EMAIL PROTECTED]> wrote:
>>
>> I want to add the subversion version number (ie: 849) to the title of
>> my application layout view.
>>
>> Is the svn version number possible or accessible from within rails itself?
>>
>>
>> Something like this is what I am trying:
>>
>> title += " -- #{conf.environment} #{code.version}" unless
>> conf.environment == 'production'
>>
>> ...where code.version refers to the current svn version.
>>
>> --
>> Anthony Ettinger
>> 408-656-2473
>> http://anthony.ettinger.name
>>
>> >
>>
>
> >
>
--
Anthony Ettinger
408-656-2473
http://anthony.ettinger.name
--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---