Sha256: fb8dd42db85b02401a1e1289e68236355624d531a89b151a0f4a11078d76da12

Contents?: true

Size: 637 Bytes

Versions: 3

Compression:

Stored size: 637 Bytes

Contents

require 'octoshark/version'
require 'active_record'
require 'octoshark/active_record_extensions'

module Octoshark
  autoload :ConnectionManager, 'octoshark/connection_manager'
  autoload :Error,             'octoshark/error'

  # Octoshark needs to keep track of all connection managers in order to
  # automatically reconnect on connection establish.
  @@connection_managers = []

  def self.connection_managers
    @@connection_managers
  end

  def self.reset_connection_managers!
    connection_managers.map(&:reset!)
  end

  def self.disconnect!
    connection_managers.map(&:disconnect!)
    @@connection_managers = []
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
octoshark-0.1.2 lib/octoshark.rb
octoshark-0.1.1 lib/octoshark.rb
octoshark-0.1.0 lib/octoshark.rb