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.10 lib/rails/tasks/log.rake
railties-3.0.19 lib/rails/tasks/log.rake
rails-2.3.15 lib/tasks/log.rake
sunrise-cms-0.5.0.rc1 vendor/bundle/ruby/1.9.1/gems/railties-3.2.10/lib/rails/tasks/log.rake
challah-0.9.0 vendor/bundle/gems/railties-3.2.9/lib/rails/tasks/log.rake
railties-3.2.10 lib/rails/tasks/log.rake
railties-3.1.9 lib/rails/tasks/log.rake
railties-3.0.18 lib/rails/tasks/log.rake
jquery_regex-0.0.3 vendor/bundle/gems/jquery_regex-0.0.3/vendor/bundle/gems/railties-3.2.9/lib/rails/tasks/log.rake
jquery_regex-0.0.3 vendor/bundle/gems/railties-3.2.9/lib/rails/tasks/log.rake
jquery_regex-0.0.3 vendor/bundle/gems/jquery_regex-0.0.1/vendor/bundle/gems/railties-3.2.9/lib/rails/tasks/log.rake
jquery_regex-0.0.3 vendor/bundle/gems/jquery_regex-0.0.2/vendor/bundle/gems/jquery_regex-0.0.1/vendor/bundle/gems/railties-3.2.9/lib/rails/tasks/log.rake
jquery_regex-0.0.3 vendor/bundle/gems/jquery_regex-0.0.3/vendor/bundle/gems/jquery_regex-0.0.1/vendor/bundle/gems/railties-3.2.9/lib/rails/tasks/log.rake
jquery_regex-0.0.3 vendor/bundle/gems/jquery_regex-0.0.3/vendor/bundle/gems/jquery_regex-0.0.2/vendor/bundle/gems/jquery_regex-0.0.1/vendor/bundle/gems/railties-3.2.9/lib/rails/tasks/log.rake
jquery_regex-0.0.3 vendor/bundle/gems/jquery_regex-0.0.2/vendor/bundle/gems/railties-3.2.9/lib/rails/tasks/log.rake
jquery_regex-0.0.3 vendor/bundle/gems/jquery_regex-0.0.3/vendor/bundle/gems/jquery_regex-0.0.2/vendor/bundle/gems/railties-3.2.9/lib/rails/tasks/log.rake
jquery_regex-0.0.1 vendor/bundle/gems/railties-3.2.9/lib/rails/tasks/log.rake
challah-rolls-0.2.0 vendor/bundle/gems/railties-3.2.8/lib/rails/tasks/log.rake
challah-rolls-0.2.0 vendor/bundle/gems/railties-3.2.7/lib/rails/tasks/log.rake
challah-rolls-0.2.0 vendor/bundle/gems/railties-3.2.9/lib/rails/tasks/log.rake