Class: Indocker::Configs::Locator
- Inherits:
-
Object
- Object
- Indocker::Configs::Locator
- Includes:
- SmartIoC::Iocify
- Defined in:
- lib/indocker/configs/locator.rb
Constant Summary collapse
- ROOT =
'/'
Instance Method Summary collapse
Instance Method Details
#locate(path) ⇒ Object
8 9 10 11 12 13 14 15 16 |
# File 'lib/indocker/configs/locator.rb', line 8 def locate(path) = potential_config_file File.(path) return if File.exists?() raise Indocker::Errors::ConfigFilesDoesNotFound if path == ROOT locate(File.dirname(path)) end |