Skip to content
Snippets Groups Projects
Commit 38f4b61a authored by Jacob Vosmaer's avatar Jacob Vosmaer
Browse files

Make it possible to call Gitlab::Popen.popen

parent 8016cefa
No related branches found
No related tags found
No related merge requests found
Loading
@@ -3,6 +3,8 @@ require 'open3'
Loading
@@ -3,6 +3,8 @@ require 'open3'
   
module Gitlab module Gitlab
module Popen module Popen
extend self
def popen(cmd, path=nil) def popen(cmd, path=nil)
unless cmd.is_a?(Array) unless cmd.is_a?(Array)
raise "System commands must be given as an array of strings" raise "System commands must be given as an array of strings"
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment