diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2010-06-09 16:19:03 -0400 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2010-06-09 16:19:03 -0400 |
commit | 29acc17c0f3c6697f174b228a738819024f81c87 (patch) | |
tree | 759cae7e8ec23e1d60416e249f61079387e48895 /railties/lib/rails/tasks/tmp.rake | |
parent | c9d156f0630b2aaeca7c253acf99bfe9e662c5bd (diff) | |
download | rails-29acc17c0f3c6697f174b228a738819024f81c87.tar.gz rails-29acc17c0f3c6697f174b228a738819024f81c87.tar.bz2 rails-29acc17c0f3c6697f174b228a738819024f81c87.zip |
Cut down on tasks shown in rake -T
Diffstat (limited to 'railties/lib/rails/tasks/tmp.rake')
-rw-r--r-- | railties/lib/rails/tasks/tmp.rake | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/railties/lib/rails/tasks/tmp.rake b/railties/lib/rails/tasks/tmp.rake index fea15058bb..3ee5452475 100644 --- a/railties/lib/rails/tasks/tmp.rake +++ b/railties/lib/rails/tasks/tmp.rake @@ -1,5 +1,5 @@ namespace :tmp do - desc "Clear session, cache, and socket files from tmp/" + desc "Clear session, cache, and socket files from tmp/ (narrow w/ tmp:sessions:clear, tmp:cache:clear, tmp:sockets:clear)" task :clear => [ "tmp:sessions:clear", "tmp:cache:clear", "tmp:sockets:clear"] desc "Creates tmp directories for sessions, cache, sockets, and pids" @@ -8,28 +8,28 @@ namespace :tmp do end namespace :sessions do - desc "Clears all files in tmp/sessions" + # desc "Clears all files in tmp/sessions" task :clear do FileUtils.rm(Dir['tmp/sessions/[^.]*']) end end namespace :cache do - desc "Clears all files and directories in tmp/cache" + # desc "Clears all files and directories in tmp/cache" task :clear do FileUtils.rm_rf(Dir['tmp/cache/[^.]*']) end end namespace :sockets do - desc "Clears all files in tmp/sockets" + # desc "Clears all files in tmp/sockets" task :clear do FileUtils.rm(Dir['tmp/sockets/[^.]*']) end end namespace :pids do - desc "Clears all files in tmp/pids" + # desc "Clears all files in tmp/pids" task :clear do FileUtils.rm(Dir['tmp/pids/[^.]*']) end |