module ActiveHook
Constants
- CODENAME
- REQUEST_HEADERS
- VERSION
Attributes
connection_pool[R]
mode[RW]
Public Class Methods
build_config()
click to toggle source
# File lib/activehook/config.rb, line 12 def build_config klass = case ActiveHook.mode when :server then ActiveHook::Server::Config when :client then ActiveHook::Client::Config else ActiveHook::App::Config end klass.new end
config()
click to toggle source
# File lib/activehook/config.rb, line 8 def config @config ||= build_config end
configure() { |config| ... }
click to toggle source
# File lib/activehook/config.rb, line 3 def configure reset yield(config) end
log()
click to toggle source
# File lib/activehook/log.rb, line 7 def log @log ||= Log.new end
redis()
click to toggle source
# File lib/activehook/redis.rb, line 5 def redis @connection_pool ||= ConnectionPool.create end
reset()
click to toggle source
# File lib/activehook/config.rb, line 22 def reset @config = nil @connection_pool = nil end