diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2016-02-26 20:24:44 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2016-02-26 20:24:44 -0300 |
commit | 2142064fe18429634f9ba8418b69d1d56781805a (patch) | |
tree | f5c0421d1d782a23e8de535eb4a96dd7642d5e72 /railties | |
parent | 84252a4f3cd0f85ce4e35cd912750a445cbfe382 (diff) | |
parent | 7ce3ad1206d00397553ca93638eab9b890f4f605 (diff) | |
download | rails-2142064fe18429634f9ba8418b69d1d56781805a.tar.gz rails-2142064fe18429634f9ba8418b69d1d56781805a.tar.bz2 rails-2142064fe18429634f9ba8418b69d1d56781805a.zip |
Merge pull request #23917 from chashmeetsingh/patch-1
Create tmp folder if not present
Diffstat (limited to 'railties')
-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 |