module GHTorrent::Persister
Constants
- ADAPTERS
Public Instance Methods
connect(adapter, settings)
click to toggle source
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’
# File lib/ghtorrent/persister.rb, line 17 def connect(adapter, settings) driver = ADAPTERS[adapter.intern] driver.new(settings) end
disconnect()
click to toggle source
# File lib/ghtorrent/persister.rb, line 22 def disconnect driver.close end