Top Level Namespace
Defined Under Namespace
Modules: Detector Classes: APIObject, Account, Accounting, Application, Contact, Domain, Host, Hosting, INWX, Ifconfig, Ipify, Message, Nameserver, NameserverSet, Pdf, Tag
Instance Method Summary collapse
Instance Method Details
#find_config! ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/inwxupdate.rb', line 7 def find_config! [ '/etc/inwxupdate.config.rb', '/usr/local/etc/inwxupdate.config.rb', '~/inwxupdate.config.rb', './inwxupdate.config.rb' ].each do |path| return require(path) if File.exist?(path) next end raise 'no config found' end |