Method: LocalConf#initialize
- Defined in:
- lib/vex/base/local_conf.rb
#initialize(file) ⇒ LocalConf
Returns a new instance of LocalConf.
4 5 6 7 8 9 10 11 12 |
# File 'lib/vex/base/local_conf.rb', line 4 def initialize(file) r1 = load file.sub(/\.yml$/, ".defaults.yml") r2 = load file return if r1 || r2 raise Errno::ENOENT, "Missing configuration file #{App.root}/config/#{file.sub(/\.yml$/, "")}{.defaults}.yml}" end |