Sha256: 9f07ee5beb24ef5a7600a09afdb5809cce955ce1dcda9a3a3bbe422caf4407e2
Contents?: true
Size: 468 Bytes
Versions: 3
Compression:
Stored size: 468 Bytes
Contents
module RockConfig class Scanner def initialize(configuration) @configuration = configuration end def find(file_name) @configuration.scanned_directories.each do |directory| @configuration.config_loaders.each do |loader| if config = loader.find_at(directory, file_name) return config end end end raise ConfigNotFoundError, 'Config file "%s" not found' % file_name end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rock_config-0.0.7 | lib/rock_config/scanner.rb |
rock_config-0.0.6 | lib/rock_config/scanner.rb |
rock_config-0.0.5 | lib/rock_config/scanner.rb |