lib/octoshark.rb in octoshark-0.0.7 vs lib/octoshark.rb in octoshark-0.0.8
- old
+ new
@@ -10,13 +10,17 @@
class NoCurrentConnectionError < StandardError; end;
OCTOSHARK = :octoshark
class << self
- delegate :current_connection, :with_connection,
- :connection, :current_or_default_connection,
- :connection_pools, :find_connection_pool,
- :disconnect!, to: :switcher
+ delegate :connection_pools,
+ :current_or_default_connection,
+ :disconnect!,
+ :find_connection_pool,
+ :with_connection,
+ :current_connection,
+ :current_connection?,
+ to: :switcher
def configure(configs)
@configs = configs
@switcher = ConnectionSwitcher.new(configs)
end