class Bundler::ConnectionPool::Wrapper
Constants
- METHODS
Public Class Methods
# File lib/bundler/vendor/connection_pool/lib/connection_pool.rb, line 131 def initialize(options = {}, &block) @pool = options.fetch(:pool) { ::Bundler::ConnectionPool.new(options, &block) } end
Public Instance Methods
# File lib/bundler/vendor/connection_pool/lib/connection_pool.rb, line 155 def method_missing(name, *args, &block) with do |connection| connection.send(name, *args, &block) end end
# File lib/bundler/vendor/connection_pool/lib/connection_pool.rb, line 147 def pool_available @pool.available end
# File lib/bundler/vendor/connection_pool/lib/connection_pool.rb, line 139 def pool_shutdown(&block) @pool.shutdown(&block) end
# File lib/bundler/vendor/connection_pool/lib/connection_pool.rb, line 143 def pool_size @pool.size end
# File lib/bundler/vendor/connection_pool/lib/connection_pool.rb, line 151 def respond_to?(id, *args) METHODS.include?(id) || with { |c| c.respond_to?(id, *args) } end
# File lib/bundler/vendor/connection_pool/lib/connection_pool.rb, line 135 def with(&block) @pool.with(&block) end
Ruby Core © 1993–2017 Yukihiro Matsumoto
Licensed under the Ruby License.
Ruby Standard Library © contributors
Licensed under their own licenses.