Class: DBGet::Config
- Inherits:
-
Hash
- Object
- Hash
- DBGet::Config
- Includes:
- Singleton
- Defined in:
- lib/dbget/config.rb
Class Method Summary collapse
Class Method Details
.database(name) ⇒ Object
13 14 15 |
# File 'lib/dbget/config.rb', line 13 def self.database(name) self.instance['databases'][name] end |
.load_from_yml(yaml_path) ⇒ Object
7 8 9 10 11 |
# File 'lib/dbget/config.rb', line 7 def self.load_from_yml(yaml_path) config = self.instance config.clear config.merge!(YAML.load_file(yaml_path)) end |