Created
January 18, 2011 15:02
-
-
Save joahking/784543 to your computer and use it in GitHub Desktop.
cap deploy:show_revision
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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