Permalink
Browse files

Make clearing follow the object:action naming of the rest of the tasks

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3698 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
dhh committed Feb 28, 2006
1 parent 1c59702 commit 14a8782e4fdc78a0d45d5215a341a8b4e089827e
Showing with 15 additions and 9 deletions.
  1. +15 −9 railties/lib/tasks/tmp.rake
@@ -10,18 +10,24 @@ namespace :tmp do
FileUtils.mkdir "tmp/sockets"
end
- desc "Clears all files in tmp/sessions"
- task :clear_sessions do
- FileUtils.rm(Dir['tmp/sessions/[^.]*'])
+ namespace :sessions do
+ desc "Clears all files in tmp/sessions"
+ task :clear do
+ FileUtils.rm(Dir['tmp/sessions/[^.]*'])
+ end
end
- desc "Clears all files and directories in tmp/cache"
- task :clear_cache do
- FileUtils.rm_rf(Dir['tmp/cache/[^.]*'])
+ namespace :cache do
+ desc "Clears all files and directories in tmp/cache"
+ task :clear do
+ FileUtils.rm_rf(Dir['tmp/cache/[^.]*'])
+ end
end
- desc "Clears all ruby_sess.* files in tmp/sessions"
- task :clear_sockets do
- FileUtils.rm(Dir['tmp/sockets/[^.]*'])
+ namespace :sockets do
+ desc "Clears all ruby_sess.* files in tmp/sessions"
+ task :clear do
+ FileUtils.rm(Dir['tmp/sockets/[^.]*'])
+ end
end
end

0 comments on commit 14a8782

Please sign in to comment.