Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

DRY up task removal, and add cleanup and rollback

  • Loading branch information...
commit 3556d47b2251c73a2809e52805904251db02b04f 1 parent 29b5f30
@nilbus nilbus authored
Showing with 9 additions and 5 deletions.
  1. +9 −5 lib/capistrano/windows_server.rb
View
14 lib/capistrano/windows_server.rb
@@ -55,11 +55,15 @@
end
end
- # Do nothing for Windows
- task :finalize_update do; end
-
- # Do nothing for Windows
- task :symlink do; end
+ # Remove tasks that are not appropriate on Windows
+ %w(finalize_update symlink cleanup).each do |removed_task|
+ task removed_task do; end
+ end
+ namespace :rollback do
+ %w(code default).each do |removed_task|
+ task removed_task do; end
+ end
+ end
desc "Run pending migrations"
task :migrate do
Please sign in to comment.
Something went wrong with that request. Please try again.