Class: Barometer::Support::KeyFileParser
- Inherits:
-
Object
- Object
- Barometer::Support::KeyFileParser
- Defined in:
- lib/barometer/support/key_file_parser.rb
Class Method Summary collapse
Class Method Details
.find(*paths) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/barometer/support/key_file_parser.rb', line 6 def self.find(*paths) if File.exists?(KEY_FILE) keys = YAML.load_file(KEY_FILE) paths.each do |path| if keys && keys.has_key?(path.to_s) keys = keys.fetch(path.to_s) else keys = nil end end keys end end |