class Travis::Tools::Github

def file(path, default = nil)

def file(path, default = nil)
  path        &&= File.expand_path(path)
  @file       ||= {}
  @file[path] ||= if path && File.readable?(path)
                    debug "reading #{path}"
                    yield File.read(path)
                  end
  @file[path] || default
rescue StandardError => e
  raise e if explode
end