Module: DohApp
Instance Method Summary collapse
Instance Method Details
#init_from_file(filepath) ⇒ Object
12 13 14 15 |
# File 'lib/dohutil/app/util.rb', line 12 def init_from_file(filepath) Doh.find_root_from_file(filepath) DohApp.require_custom_config end |
#require_custom_config ⇒ Object
6 7 8 9 10 |
# File 'lib/dohutil/app/util.rb', line 6 def require_custom_config raise Doh::DohRootNotFoundException if !Doh.root path = File.(File.join(Doh.root, 'config/dohapp.rb')) require(path) if File.exist?(path) end |