Method: Changit::ConfigReader#read

Defined in:
lib/changit/config_reader.rb

#readObject



14
15
16
17
18
19
20
21
22
# File 'lib/changit/config_reader.rb', line 14

def read
  search_result = Dir.glob(@search_path)

  if search_result.empty?
    fail "File #{@search_path} not found."
  else
    File.read(search_result.first)
  end
end