Sha256: ccc6561928f5de9616191a8f6b6f796236f725a189cada32dfd9c0d9b6ac0bf1

Contents?: true

Size: 203 Bytes

Versions: 85

Compression:

Stored size: 203 Bytes

Contents

namespace :log do
  desc "Truncates all *.log files in log/ to zero bytes"
  task :clear do
    FileList["log/*.log"].each do |log_file|
      f = File.open(log_file, "w")
      f.close
    end
  end
end

Version data entries

85 entries across 85 versions & 3 rubygems

Version Path
mack-0.8.0 lib/mack/tasks/log_tasks.rake
mack-0.8.0.2 lib/mack/tasks/log_tasks.rake
mack-0.8.1 lib/mack/tasks/log_tasks.rake
mack-0.8.3 lib/mack/tasks/log_tasks.rake
mack-0.8.3.1 lib/mack/tasks/log_tasks.rake