diff --git a/lib/gitlab/popen.rb b/lib/gitlab/popen.rb index f9559012c4a43fa18b6d41499bb0bb98ec3007cc..e2fbafb389911ef68e4da2da7da917f6acb9e86a 100644 --- a/lib/gitlab/popen.rb +++ b/lib/gitlab/popen.rb @@ -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"