Method: Gerrit::Configuration.from_file
- Defined in:
- lib/gerrit/configuration.rb
.from_file(config_file) ⇒ Gerrit::Configuration
Loads a configuration from a file.
35 36 37 38 39 40 41 42 43 44 |
# File 'lib/gerrit/configuration.rb', line 35 def from_file(config_file) = if yaml = YAML.load_file(config_file) yaml.to_hash else {} end new() end |