Make it possible to call Gitlab::Popen.popen

This commit is contained in:
Jacob Vosmaer 2014-02-25 11:58:58 +01:00
parent 8016cefafe
commit 38f4b61a58
1 changed files with 2 additions and 0 deletions

View File

@ -3,6 +3,8 @@ require 'open3'
module Gitlab
module Popen
extend self
def popen(cmd, path=nil)
unless cmd.is_a?(Array)
raise "System commands must be given as an array of strings"