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.15.rc3 lib/rails/tasks/log.rake
railties-3.2.15.rc2 lib/rails/tasks/log.rake
railties-3.2.15.rc1 lib/rails/tasks/log.rake
railties-3.2.14 lib/rails/tasks/log.rake
railties-3.2.14.rc2 lib/rails/tasks/log.rake
railties-3.2.14.rc1 lib/rails/tasks/log.rake
swipe-rails-0.0.5 vendor/bundle/gems/railties-3.2.13/lib/rails/tasks/log.rake
active_mailer-0.0.9 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/railties-3.2.12/lib/rails/tasks/log.rake
active_mailer-0.0.8 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/railties-3.2.12/lib/rails/tasks/log.rake
active_mailer-0.0.7 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/railties-3.2.12/lib/rails/tasks/log.rake
active_mailer-0.0.6 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/railties-3.2.12/lib/rails/tasks/log.rake
font-awesome-rails-3.1.1.2 vendor/ruby/2.0.0/gems/railties-3.2.12/lib/rails/tasks/log.rake
font-awesome-rails-3.1.1.2 vendor/ruby/1.9.1/gems/railties-3.2.12/lib/rails/tasks/log.rake
font-awesome-rails-3.1.1.2 vendor/ruby/1.9.1/gems/railties-3.2.13/lib/rails/tasks/log.rake
font-awesome-rails-3.1.1.1 vendor/ruby/1.9.1/gems/railties-3.2.12/lib/rails/tasks/log.rake
font-awesome-rails-3.1.1.1 vendor/ruby/2.0.0/gems/railties-3.2.12/lib/rails/tasks/log.rake
font-awesome-rails-3.1.1.1 vendor/ruby/1.9.1/gems/railties-3.2.13/lib/rails/tasks/log.rake
challah-1.0.0.beta3 vendor/bundle/gems/railties-3.2.13/lib/rails/tasks/log.rake
fc-webicons-0.0.4 vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/tasks/log.rake
challah-1.0.0.beta2 vendor/bundle/gems/railties-3.2.13/lib/rails/tasks/log.rake