Class: ResourceIn::Config
- Inherits:
-
Object
- Object
- ResourceIn::Config
- Defined in:
- lib/resource_in/config.rb
Constant Summary collapse
- CONFIG_PATH =
'/usr/local/etc/rin.yml'
Class Method Summary collapse
Class Method Details
.[](param) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/resource_in/config.rb', line 8 def [](param) unless (@config_data ||= load_config).key? 'resource-in' return nil end unless @config_data['resource-in'] != nil return nil end unless @config_data['resource-in'].key? param return nil end @config_data['resource-in'][param] end |