def sudo_exec_for_code(command, options = {}, &block)
      options = (options || {}).merge(retrieve_exit_code: true, on_non_zero_exit_code: :ignore)
      sudo_exec command, options, &block
      last_exit_code
    end
def sudo_exec_for_code(command, options = {}, &block)
      options = (options || {}).merge(retrieve_exit_code: true, on_non_zero_exit_code: :ignore)
      sudo_exec command, options, &block
      last_exit_code
    end
Executes a command specifically for the exit code.

 Does not return the output of the command, only the exit code.