aboutsummaryrefslogtreecommitdiffstats
path: root/config/run-with-rbenv-path.example
diff options
context:
space:
mode:
Diffstat (limited to 'config/run-with-rbenv-path.example')
-rw-r--r--config/run-with-rbenv-path.example8
1 files changed, 8 insertions, 0 deletions
diff --git a/config/run-with-rbenv-path.example b/config/run-with-rbenv-path.example
new file mode 100644
index 000000000..25dec9b60
--- /dev/null
+++ b/config/run-with-rbenv-path.example
@@ -0,0 +1,8 @@
+#!/bin/bash
+
+# We want this script to run in the context of the ruby version defined for the site
+PATH=/home/!!(*= $user *)!!/.rbenv/shims:$PATH
+
+source "$1"
+
+exit $?