Method: Utils::ConfigFile#parse_config_file

Defined in:
lib/utils/config_file.rb

#parse_config_file(config_file_path) ⇒ Object



27
28
29
30
31
32
33
34
35
36
37
# File 'lib/utils/config_file.rb', line 27

def parse_config_file(config_file_path)
  config_file_path = File.expand_path(config_file_path)
  File.open(config_file_path) do |cf|
    parse cf.read
  end
  self
rescue SystemCallError => e
  $DEBUG and warn "Couldn't read config file "\
    "#{config_file_path.inspect}: #{e.class} #{e}"
  return nil
end