Skip to content

Instantly share code, notes, and snippets.

@7hunderbird
Created July 10, 2009 21:15
Show Gist options
  • Save 7hunderbird/144819 to your computer and use it in GitHub Desktop.
Save 7hunderbird/144819 to your computer and use it in GitHub Desktop.
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