mirror of
https://github.com/capistrano/capistrano
synced 2023-03-27 23:21:18 -04:00
Don't run the cleanup task on servers marked no_release
git-svn-id: http://svn.rubyonrails.org/rails/tools/capistrano@5348 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
parent
86166883bc
commit
9250fe00b9
2 changed files with 3 additions and 1 deletions
|
@ -1,5 +1,7 @@
|
|||
*SVN*
|
||||
|
||||
* Don't run the cleanup task on servers marked no_release [Jamis Buck]
|
||||
|
||||
* Fix typo in default_io_proc so it correctly checks the stream parameter to see if it is the error stream [Stephen Haberman]
|
||||
|
||||
* Make sure assets in images, javascripts, and stylesheets are touched after updating the code, to ensure the asset timestamping feature of rails works correctly [Jamis Buck]
|
||||
|
|
|
@ -218,7 +218,7 @@ releases are retained, but this can be configured with the 'keep_releases'
|
|||
variable. This will use sudo to do the delete by default, but you can specify
|
||||
that run should be used by setting the :use_sudo variable to false.
|
||||
DESC
|
||||
task :cleanup do
|
||||
task :cleanup, :except => { :no_release => true } do
|
||||
count = (self[:keep_releases] || 5).to_i
|
||||
if count >= releases.length
|
||||
logger.important "no old releases to clean up"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue