Permalink
Browse files

Remove log task

  • Loading branch information...
1 parent 6527597 commit e1b03fb231185846e2c837842acf703b91ba34a6 blake.mizerany@gmail.com committed Sep 25, 2007
Showing with 9 additions and 0 deletions.
  1. +9 −0 RakeFile
View
@@ -1,4 +1,5 @@
require 'rake/testtask'
+require 'ftools'
task :default => :test
@@ -8,3 +9,11 @@ Rake::TestTask.new do |t|
t.pattern = './**/*_test.rb'
t.verbose = true
end
+
+desc 'Clear all the log files from here down'
+task :remove_logs do
+ Dir.glob(Dir.pwd + '/**/*.log') do |logfile|
+ FileUtils.rm(logfile)
+ puts 'Removed: %s' % logfile
+ end
+end

0 comments on commit e1b03fb

Please sign in to comment.