Sha256: eac93404eead18a35c2f2261be9da2ba1dedc0b76aa169f31122b436158d9a0f

Contents?: true

Size: 204 Bytes

Versions: 420

Compression:

Stored size: 204 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

420 entries across 381 versions & 43 rubygems

Version Path
railties-3.2.22.5 lib/rails/tasks/log.rake
railties-3.2.22.4 lib/rails/tasks/log.rake
railties-3.2.22.3 lib/rails/tasks/log.rake
railties-3.2.22.2 lib/rails/tasks/log.rake
railties-3.2.22.1 lib/rails/tasks/log.rake
active_mailer-0.0.10 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/railties-3.2.12/lib/rails/tasks/log.rake
railties-3.2.22 lib/rails/tasks/log.rake
judge-2.0.5 vendor/bundle/ruby/2.1.0/gems/railties-3.2.12/lib/rails/tasks/log.rake
railties-3.2.21 lib/rails/tasks/log.rake
railties-3.2.20 lib/rails/tasks/log.rake
albanpeignier-gepetto-0.0.3 tasks/log.rake
albanpeignier-gepetto-0.0.4 tasks/log.rake
albanpeignier-gepetto-0.0.5 tasks/log.rake
albanpeignier-gepetto-0.0.6 tasks/log.rake
albanpeignier-gepetto-0.0.7 tasks/log.rake
railties-3.2.19 lib/rails/tasks/log.rake
railties-3.2.18 lib/rails/tasks/log.rake
railties-3.2.17 lib/rails/tasks/log.rake
railties-3.2.16 lib/rails/tasks/log.rake
railties-3.2.15 lib/rails/tasks/log.rake