Module: ModuleSync::Util
- Defined in:
- lib/modulesync/util.rb
Class Method Summary collapse
Class Method Details
.parse_config(config_file) ⇒ Object
6 7 8 9 10 11 12 13 |
# File 'lib/modulesync/util.rb', line 6 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 |