module Locum::ConfigBuilder
Constants
- CONFIG_FILE
Public Class Methods
load()
click to toggle source
# File lib/locum/config_builder.rb, line 8 def self.load YAML.load_file(CONFIG_FILE) rescue Errno::ENOENT raise Errno::ENOENT, 'Не найден файл конфигурации. Запустите locum init, чтобы его создать' end
save(config)
click to toggle source
# File lib/locum/config_builder.rb, line 14 def self.save(config) File.write(CONFIG_FILE, YAML.dump(config)) end