Class | AppConfig::Storage::Mongo |
In: |
lib/app_config/storage/mongo.rb
|
Parent: | Storage::Base |
Mongo storage method. FIXME: Come up with a way of removing stale config entries.
DEFAULTS | = | { :host => 'localhost', :port => '27017', :database => 'app_config', :collection => 'app_config', :user => nil, :password => nil |
# File lib/app_config/storage/mongo.rb, line 24 def initialize(options) super(DEFAULTS.merge(options)) @connected = false @options = DEFAULTS.merge(options) setup_connection @data = fetch_data end