Sha256: 6fcc40161c16853cf1907b5f0c55875445b4d3982365e45eb34827ff95248100

Contents?: true

Size: 208 Bytes

Versions: 1

Compression:

Stored size: 208 Bytes

Contents

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cells-3.3.5 rails/tasks/log.rake