Class: JiraReport::ConfigLoader
- Inherits:
-
Object
- Object
- JiraReport::ConfigLoader
- Defined in:
- lib/jira_report/config_loader.rb
Overview
Loads configuration from configuration file.
Class Method Summary collapse
Class Method Details
.load_config(path) ⇒ Object
6 7 8 9 10 11 12 13 |
# File 'lib/jira_report/config_loader.rb', line 6 def self.load_config(path) begin config = ParseConfig.new(File.(path)) symboled_hash(config.params) rescue Exception => e raise RuntimeError.new "Error loading config: #{e}" end end |