lib/ghtorrent/persister.rb
def connect(adapter, settings)
      driver = ADAPTERS[adapter.intern]
      driver.new(settings)
    end
def connect(adapter, settings)
      driver = ADAPTERS[adapter.intern]
      driver.new(settings)
    end
Factory method for retrieving persistence connections.
 The +settings+ argument is a fully parsed YAML document
 passed on to adapters. The available +adapter+ are 'mongo' and 'noop'