Sha256: 6e59dc1db6c7b82722892bccfecfe4c60934f2736ea14b6889e907f72dd032e8
Contents?: true
Size: 663 Bytes
Versions: 1
Compression:
Stored size: 663 Bytes
Contents
require 'byebug' require 'rack' require 'ruby_wolf/version' require 'ruby_wolf/configuration' require 'ruby_wolf/connection' require 'ruby_wolf/handler' require 'ruby_wolf/server' require 'ruby_wolf/worker' require 'ruby_wolf/cli' module RubyWolf MAIN_PID = Process.pid CRLF = "\r\n".freeze HEADER_ENDING = "\r\n\r\n".freeze READ_SIZE = 16 * 1024 def self.logger @logger ||= Logger.new(STDOUT) end def self.log(content, mode = :info) contents = content.to_s.split("\n") object = Process.pid == MAIN_PID ? '[Main]' : "[Worker #{Process.pid}]" contents.each do |line| logger.send(mode, "#{object} #{line}") end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ruby_wolf-0.3.0 | lib/ruby_wolf.rb |