class PolyglotCli::IO::Config
Constants
- CONFIG_FILE_PATH
Public Class Methods
read()
click to toggle source
# File lib/polyglot_cli/io/config.rb, line 14 def read prompt.say("Reading config from #{CONFIG_FILE_PATH}") YAML.load_file(CONFIG_FILE_PATH) end
write(data)
click to toggle source
# File lib/polyglot_cli/io/config.rb, line 9 def write(data) prompt.say("Writing config to #{CONFIG_FILE_PATH}") File.open(CONFIG_FILE_PATH, 'w') { |f| YAML.dump(data, f) } end