summaryrefslogtreecommitdiff
path: root/code/snippets/custom_exit_code.rb
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2013-08-28 07:20:13 -0600
committermo khan <mo@mokhan.ca>2013-08-28 07:20:13 -0600
commitdb1191ec0e7305d684383f8974e2fa437f77ad5a (patch)
tree5e27b197dff849d22d8e1f50eb75aa499b16bd06 /code/snippets/custom_exit_code.rb
initial commitHEADmaster
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
+