Method: Shells::ShellBase#exec_ignore_code

Defined in:
lib/shells/shell_base.rb

#exec_ignore_code(command, options = {}, &block) ⇒ Object

Executes a command ignoring any exit code.

Returns the output of the command and does not even retrieve the exit code.



412
413
414
415
# File 'lib/shells/shell_base.rb', line 412

def exec_ignore_code(command, options = {}, &block)
  options = (options || {}).merge(retrieve_exit_code: false, on_non_zero_exit_code: :ignore)
  exec command, options, &block
end