Sha256: ac56a0ccd94ab1fd14622d8b9c62dbf1d1116c570914181f5f83d80525cc6917
Contents?: true
Size: 468 Bytes
Versions: 4
Compression:
Stored size: 468 Bytes
Contents
require 'parseconfig' module JiraReport # Loads configuration from configuration file. class ConfigLoader def self.load_config(path) begin config = ParseConfig.new(File.expand_path(path)) symboled_hash(config.params) rescue Exception => e raise RuntimeError.new "Error loading config: #{e}" end end private def self.symboled_hash(h) h.inject({}){ |m, (k,v)| m[k.to_sym] = v; m } end end end
Version data entries
4 entries across 4 versions & 1 rubygems