Created
May 6, 2009 23:33
-
-
Save jcn/107810 to your computer and use it in GitHub Desktop.
rake vlad:deploy:pending for git
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 | |
remote_task :pending, :roles => :app do | |
output = run ["cd #{scm_path}", "cd repo", "echo #{source.revision(revision)}"].join(" && ") | |
revisions = `git log #{output.strip}..#{source.revision(revision)}` | |
puts "undeployed revisions:\n#{revisions}" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment