summaryrefslogtreecommitdiff
path: root/code/snippets/custom_exit_code.rb
diff options
context:
space:
mode:
Diffstat (limited to 'code/snippets/custom_exit_code.rb')
-rw-r--r--code/snippets/custom_exit_code.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/code/snippets/custom_exit_code.rb b/code/snippets/custom_exit_code.rb
new file mode 100644
index 0000000..de83030
--- /dev/null
+++ b/code/snippets/custom_exit_code.rb
@@ -0,0 +1,3 @@
+# You can pass a custom exit code to this method
+exit 22
+