diff options
author | Chashmeet Singh <chashmeetsingh@gmail.com> | 2016-02-27 00:42:03 +0530 |
---|---|---|
committer | Chashmeet Singh <chashmeetsingh@gmail.com> | 2016-02-27 04:51:49 +0530 |
commit | 7ce3ad1206d00397553ca93638eab9b890f4f605 (patch) | |
tree | 8428213f202d4a2f3c70f7df7052bb8dcb3b4155 | |
parent | bf1ac69636f6dabfd993afd4ad29416514816daf (diff) | |
download | rails-7ce3ad1206d00397553ca93638eab9b890f4f605.tar.gz rails-7ce3ad1206d00397553ca93638eab9b890f4f605.tar.bz2 rails-7ce3ad1206d00397553ca93638eab9b890f4f605.zip |
Create tmp folder if not present
All Apps may not have a tmp folder
Update dev.rake
Update dev.rake
Update dev.rake
Update dev.rake
Update dev.rake
Update dev.rake
Update dev.rake
-rw-r--r-- | railties/lib/rails/tasks/dev.rake | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/railties/lib/rails/tasks/dev.rake b/railties/lib/rails/tasks/dev.rake index 4593100465..2b5554b9f2 100644 --- a/railties/lib/rails/tasks/dev.rake +++ b/railties/lib/rails/tasks/dev.rake @@ -1,6 +1,8 @@ namespace :dev do desc 'Toggle development mode caching on/off' task :cache do + FileUtils.mkdir_p('tmp') + if File.exist? 'tmp/caching-dev.txt' File.delete 'tmp/caching-dev.txt' puts 'Development mode is no longer being cached.' @@ -8,7 +10,7 @@ namespace :dev do FileUtils.touch 'tmp/caching-dev.txt' puts 'Development mode is now being cached.' end - + FileUtils.touch 'tmp/restart.txt' end end |