Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'ruby/bin/ruby-cd')
-rwxr-xr-xruby/bin/ruby-cd6
1 files changed, 6 insertions, 0 deletions
diff --git a/ruby/bin/ruby-cd b/ruby/bin/ruby-cd
new file mode 100755
index 000000000..9dfb91e84
--- /dev/null
+++ b/ruby/bin/ruby-cd
@@ -0,0 +1,6 @@
+#!/usr/bin/env ruby
+
+# This script lets you run `bundle exec` in one directory, and then changes into another.
+
+Dir.chdir(ARGV.shift)
+exec(*ARGV)