Top Level Namespace

Defined Under Namespace

Modules: Nestful, Tc4r

Instance Method Summary collapse

Instance Method Details

#load_config(file) ⇒ Object



20
21
22
23
24
25
26
# File 'lib/tc4r_base.rb', line 20

def load_config(file)
  if File.exist? File.expand_path(file) 
    return Tc4r::Helpers.symbolize(YAML.load(File.read(File.expand_path(file)))) 
  else
    abort ("Configuration file does not exist #{file}")
  end
end