Commit 38f4b61a588ffd515496a04663a2f3fa9178d161

Authored by Jacob Vosmaer
1 parent 8016cefa

Make it possible to call Gitlab::Popen.popen

Showing 1 changed file with 2 additions and 0 deletions   Show diff stats
lib/gitlab/popen.rb
@@ -3,6 +3,8 @@ require 'open3' @@ -3,6 +3,8 @@ require 'open3'
3 3
4 module Gitlab 4 module Gitlab
5 module Popen 5 module Popen
  6 + extend self
  7 +
6 def popen(cmd, path=nil) 8 def popen(cmd, path=nil)
7 unless cmd.is_a?(Array) 9 unless cmd.is_a?(Array)
8 raise "System commands must be given as an array of strings" 10 raise "System commands must be given as an array of strings"