Class: Nrcmd::Config
- Inherits:
-
Object
- Object
- Nrcmd::Config
- Defined in:
- lib/nrcmd/util/config.rb
Class Method Summary collapse
Class Method Details
.load(conf_path) ⇒ Object
4 5 6 7 8 9 |
# File 'lib/nrcmd/util/config.rb', line 4 def load(conf_path) conf = { :nr_api_key => nil } # TODO: handle error, 'file does not exist' _conf = eval File.read "#{conf_path}" conf.merge! _conf end |