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.1.11 lib/rails/tasks/log.rake
rails-2.3.17 lib/tasks/log.rake
openskies-0.0.2 lib/rails/tasks/log.rake
openskies-0.0.1 lib/rails/tasks/log.rake
graphael-on-rails-0.5.1 vendor/bundle/gems/railties-3.2.11/lib/rails/tasks/log.rake
graphael-on-rails-0.0.1 vendor/bundle/gems/railties-3.2.11/lib/rails/tasks/log.rake
challah-0.9.1.beta.3 vendor/bundle/gems/railties-3.2.11/lib/rails/tasks/log.rake
devise_sociable-0.1.0 vendor/bundle/gems/railties-3.2.11/lib/rails/tasks/log.rake
rails_csi-2.3.5.p7 lib/tasks/log.rake
rails_csi-2.3.5.p6 lib/tasks/log.rake
railties-3.0.20 lib/rails/tasks/log.rake
rails-2.3.16 lib/tasks/log.rake
backbone-queryparams-rails-0.0.1 vendor/bundle/gems/railties-3.2.11/lib/rails/tasks/log.rake
railscast-assets-0.0.2 vendor/bundle/gems/railties-3.2.11/lib/rails/tasks/log.rake
railscast-assets-0.0.2 vendor/bundle/gems/backbone-forms-on-rails-0.10.0/vendor/bundle/gems/railties-3.2.11/lib/rails/tasks/log.rake
backbone-forms-on-rails-0.10.0 vendor/bundle/gems/railties-3.2.11/lib/rails/tasks/log.rake
backbone-forms-on-rails-0.10.0 vendor/bundle/gems/backbone-forms-on-rails-0.10.0/vendor/bundle/gems/railties-3.2.11/lib/rails/tasks/log.rake
backbone-deep-rails-0.0.1 vendor/bundle/gems/railties-3.2.11/lib/rails/tasks/log.rake
challah-0.9.1.beta vendor/bundle/gems/railties-3.2.11/lib/rails/tasks/log.rake
railties-3.2.11 lib/rails/tasks/log.rake