Method: AppConfig::Storage::YAML#reload!
- Defined in:
- lib/app_config/storage/yaml.rb
#reload! ⇒ Object
22 23 24 25 26 27 28 29 30 |
# File 'lib/app_config/storage/yaml.rb', line 22 def reload! # Make sure to use the top-level YAML module here. if .has_key?(:env) env = [:env].to_s # Force a String here since YAML's keys are strings. @data = Storage::ConfigData.new(::YAML.load_file(@path)[env]) else @data = Storage::ConfigData.new(::YAML.load_file(@path)) end end |