aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/tasks
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2015-01-03 15:51:21 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2015-01-03 15:51:21 -0300
commitc2094f55e353565cb0de9f22addca9235db9e183 (patch)
tree6592f1b50ee77b5e1084406fa96e16b0952f6759 /railties/lib/rails/tasks
parent9b9ec0ded4f8f65e17c2af856d2e3baa5382a47a (diff)
parent1fd44213aa4485acdce54a1da1d7cd4aa0ac33b6 (diff)
downloadrails-c2094f55e353565cb0de9f22addca9235db9e183.tar.gz
rails-c2094f55e353565cb0de9f22addca9235db9e183.tar.bz2
rails-c2094f55e353565cb0de9f22addca9235db9e183.zip
Merge pull request #18314 from robin850/rm-tmp-sessions
Remove the tmp/sessions folder and its clear task
Diffstat (limited to 'railties/lib/rails/tasks')
-rw-r--r--railties/lib/rails/tasks/tmp.rake14
1 files changed, 3 insertions, 11 deletions
diff --git a/railties/lib/rails/tasks/tmp.rake b/railties/lib/rails/tasks/tmp.rake
index 116988665f..b33ae9862b 100644
--- a/railties/lib/rails/tasks/tmp.rake
+++ b/railties/lib/rails/tasks/tmp.rake
@@ -1,9 +1,8 @@
namespace :tmp do
- 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 "Clear cache and socket files from tmp/ (narrow w/ tmp:cache:clear, tmp:sockets:clear)"
+ task clear: ["tmp:cache:clear", "tmp:sockets:clear"]
- tmp_dirs = [ 'tmp/sessions',
- 'tmp/cache',
+ tmp_dirs = [ 'tmp/cache',
'tmp/sockets',
'tmp/pids',
'tmp/cache/assets/development',
@@ -15,13 +14,6 @@ namespace :tmp do
desc "Creates tmp directories for sessions, cache, sockets, and pids"
task create: tmp_dirs
- namespace :sessions do
- # 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"
task :clear do