Method: ModuleSync::Util.parse_config
- Defined in:
- lib/modulesync/util.rb
.parse_config(config_file) ⇒ Object
13 14 15 16 17 18 19 20 |
# File 'lib/modulesync/util.rb', line 13 def self.parse_config(config_file) if File.exist?(config_file) YAML.load_file(config_file) || {} else puts "No config file under #{config_file} found, using default values" {} end end |