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:
authorJacob Vosmaer <jacob@gitlab.com>2017-01-20 20:21:37 +0300
committerJacob Vosmaer <jacob@gitlab.com>2017-01-23 19:05:40 +0300
commit7d17c4097fbc32ebab955f3361da522e8818177e (patch)
tree7b38d5376ddc95ffc7c0f352b97627f22e873c25 /_support/run.rb
parent22fa1e1c84d2a446da47a64d8ce155ebd744e5e0 (diff)
Add foundation for using gRPC and Protobuf
Diffstat (limited to '_support/run.rb')
-rw-r--r--_support/run.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/_support/run.rb b/_support/run.rb
new file mode 100644
index 000000000..8d6ea482e
--- /dev/null
+++ b/_support/run.rb
@@ -0,0 +1,7 @@
+def run!(cmd, chdir='.')
+ print_cmd = cmd.join(' ')
+ puts "-> #{print_cmd}"
+ if !system(*cmd, chdir: chdir)
+ abort "command failed: #{print_cmd}"
+ end
+end