This commit is contained in:
Rafael Mendonça França 2016-02-26 20:27:32 -03:00
parent 2142064fe1
commit 0d37f122fc
1 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@ 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.'
@ -10,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