diff options
author | Jacob Vosmaer <jacob@gitlab.com> | 2019-07-05 12:28:16 +0300 |
---|---|---|
committer | Zeger-Jan van de Weg <git@zjvandeweg.nl> | 2019-07-05 12:28:16 +0300 |
commit | b9c9aec5cf53de4ea1a7fc3b067dd56d7828e080 (patch) | |
tree | 2693a49918682c12ea22e4085b8c569ac9e62497 /_support/run.rb | |
parent | 873a408c49ef1b34fce0cd47a80aa192f426d7c0 (diff) |
Start preparation for migrating .proto files
Diffstat (limited to '_support/run.rb')
-rw-r--r-- | _support/run.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/_support/run.rb b/_support/run.rb index f6d84829a..a62959180 100644 --- a/_support/run.rb +++ b/_support/run.rb @@ -5,6 +5,13 @@ def run!(cmd, chdir='.') end end +def run2!(cmd, chdir: '.', out: 1) + GitalySupport.print_cmd(cmd) + unless system(*cmd, chdir: chdir, out: out) + GitalySupport.fail_cmd!(cmd) + end +end + def capture!(cmd, chdir='.') GitalySupport.print_cmd(cmd) output = IO.popen(cmd, chdir: chdir) { |io| io.read } |