Sha256: 5e95667392751e8fddd14028f4e7938e96f6225aa43391433fc6aa8c92b66c20
Contents?: true
Size: 786 Bytes
Versions: 7
Compression:
Stored size: 786 Bytes
Contents
require 'connection_pool' module Apnotic class ConnectionPool class << self def new(options={}, pool_options={}) raise(LocalJumpError, "a block is needed when initializing an Apnotic::ConnectionPool") unless block_given? ::ConnectionPool.new(pool_options) do connection = Apnotic::Connection.new(options) yield(connection) connection end end def development(options={}, pool_options={}) raise(LocalJumpError, "a block is needed when initializing an Apnotic::ConnectionPool") unless block_given? ::ConnectionPool.new(pool_options) do connection = Apnotic::Connection.development(options) yield(connection) connection end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems