File: object.rb

package info (click to toggle)
whatweb 0.6.1-1
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 23,948 kB
  • sloc: ruby: 43,493; sh: 213; makefile: 41
file content (10 lines) | stat: -rw-r--r-- 264 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
class LoggingObject < Logging
  def out(target, status, results)
    $semaphore.synchronize do
      @f.puts "Identifying: #{target}"
      @f.puts "HTTP-Status: #{status}"
      @f.puts results.pretty_inspect unless results.empty?
      @f.puts
    end
  end
end