Method: ChefApply::Text._error_table
- Defined in:
- lib/chef_apply/text.rb
._error_table ⇒ Object
26 27 28 29 30 31 32 |
# File 'lib/chef_apply/text.rb', line 26 def self._error_table # Though ther may be several translations, en.yml will be the only one with # error metadata. path = File.join(_translation_path, "errors", "en.yml") raw_yaml = File.read(path) @error_table ||= YAML.load(raw_yaml, _translation_path, symbolize_names: true)[:errors] end |