Class | AppConfig::Storage::Mongo |
In: |
lib/app_config/storage/mongo.rb
|
Parent: | Storage::Base |
DEFAULTS | = | { :host => 'localhost', :port => '27017', :database => 'app_config', :collection => 'app_config', :user => nil, :password => nil |
# File lib/app_config/storage/mongo.rb, line 18 def initialize(options) @connected = false @options = DEFAULTS.merge(options) setup_connection fetch_data! end