ruby exit status code snippet update