class Gitlab::Shell::History

def read_from_file

def read_from_file
  path = history_file_path
  File.foreach(path) { |line| yield(line) } if File.exist?(path)
rescue => error
  warn "History file not loaded: #{error.message}"
end