aboutsummaryrefslogblamecommitdiffstats
path: root/railties/lib/rails/tasks/dev.rake
blob: 45931004652674bfd113f0524ec254718033d894 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14













                                                        
namespace :dev do
  desc 'Toggle development mode caching on/off'
  task :cache do
    if File.exist? 'tmp/caching-dev.txt'
      File.delete 'tmp/caching-dev.txt'
      puts 'Development mode is no longer being cached.'
    else
      FileUtils.touch 'tmp/caching-dev.txt'
      puts 'Development mode is now being cached.'
    end

    FileUtils.touch 'tmp/restart.txt'
  end
end