Skip to content

Instantly share code, notes, and snippets.

@joahking
Created January 18, 2011 15:02
Show Gist options
  • Save joahking/784543 to your computer and use it in GitHub Desktop.
Save joahking/784543 to your computer and use it in GitHub Desktop.
cap deploy:show_revision
namespace :deploy do
desc "Shows deployed revision."
task :cat_revision do
run "cat #{current_path}/REVISION"
end
desc "Shows deployed revision using git."
task :show_revision do
run "cd #{current_path}; git log -n 1"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment