Sha256: 470ffa96c51b96e7be85621893177ba0419be7943facf1401eabad75d6954561

Contents?: true

Size: 599 Bytes

Versions: 6

Compression:

Stored size: 599 Bytes

Contents

$:.unshift File.join(File.dirname(__FILE__), '.')

require "active_support"
require "eventmachine"
require "em-hiredis"

module Sad
	autoload :Config, 'sad/config'
	autoload :Payload, 'sad/payload'
	autoload :Server, 'sad/server'
	autoload :Worker, 'sad/worker'
	autoload :Runner, 'sad/runner'
	autoload :Logger, 'sad/logger'
	autoload :Procline, 'sad/procline'

	class << self
		def logger=(opts)
			@_logger = ::Sad::Logger.new(opts)
		end

		def logger
			@_logger ||= ::Sad::Logger.new
		end
	end
end

# EM.error_handler{
# 	::Sad.logger.fatal("exception hit eventmachine!!!\n#{$!.inspect}")
# }

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
sad-1.5.12 lib/sad.rb
sad-1.5.11 lib/sad.rb
sad-1.5.10 lib/sad.rb
sad-1.5.9 lib/sad.rb
sad-1.5.8 lib/sad.rb
sad-1.5.7 lib/sad.rb