Created
July 10, 2009 21:15
-
-
Save 7hunderbird/144819 to your computer and use it in GitHub Desktop.
This file contains 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
desc <<-DESC | |
[internal] Removes the most recently deployed release. | |
This is called by the rollback sequence, and should rarely | |
(if ever) need to be called directly. | |
DESC | |
task :cleanup, :except => { :no_release => true } do | |
run "if [ `readlink #{current_path}` != #{current_release} ]; then rm -rf #{current_release}; fi" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment