Created
May 6, 2009 23:17
-
-
Save jacqui/107806 to your computer and use it in GitHub Desktop.
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
remote_task :new_stuff, :roles => :app do | |
# fetch the last line of revisions.log | |
output = run "tail -n1 #{deploy_to}/revisions.log" | |
time = output.strip.split.last | |
# format time for git, which is picky about these things | |
time = "#{time[0,4]}-#{time[4,2]}-#{time[6,2]}.#{time[8,6]}" | |
revisions = `git rev-list --all --after='#{time}'` | |
puts "undeployed revisions:\n#{revisions}" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment