Method: PreCommit::Configuration::Providers::Yaml#update
- Defined in:
- lib/plugins/pre_commit/configuration/providers/yaml.rb
#update(name, value) ⇒ Object
19 20 21 22 23 |
# File 'lib/plugins/pre_commit/configuration/providers/yaml.rb', line 19 def update(name, value) content = read_config(local_file) content[name] = value save_config(local_file, content) end |