Created
March 23, 2010 02:45
-
-
Save imbriaco/340802 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
namespace :pending do | |
desc <<-DESC | |
Displays the `diff' since your last deploy. This is useful if you want \ | |
to examine what changes are about to be deployed. Note that this might \ | |
not be supported on all SCM's. | |
DESC | |
task :diff, :except => { :no_release => true } do | |
system(source.local.diff(current_revision)) | |
end | |
desc <<-DESC | |
Displays the commits since your last deploy. This is good for a summary \ | |
of the changes that have occurred since the last deploy. Note that this \ | |
might not be supported on all SCM's. | |
DESC | |
task :default, :except => { :no_release => true } do | |
from = source.next_revision(current_revision) | |
system(source.local.log(from)) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment