Finding the deployed revision with Capistrano

Silly question.

Is there a cap command that tells me which revision of a code base is
deployed to the target? Something like:

cap revision

I’d definitely like to check my code base revision in production
before deploying.


Here’s how I’ve done it (in config/deploy.rb):

task :revision, :roles => :app do
run %(tail -1 #{deploy_to}/revisions.log)


Thank you very much. Excellent help!