Method: Cnvrg::Images#get_bash_history

Defined in:
lib/cnvrg/Images.rb

#get_bash_historyObject



371
372
373
374
375
376
377
378
379
# File 'lib/cnvrg/Images.rb', line 371

def get_bash_history
  container = get_container()
  command = ["/bin/bash", "-lc", "cat /home/ds/.bash_history"]
  history = container.exec(command, tty: true)[0][0]
  if history.include? "No such file"
    history = ""
  end
  return history
end