diff options
author | Jacob Vosmaer <contact@jacobvosmaer.nl> | 2014-02-25 11:58:58 +0100 |
---|---|---|
committer | Jacob Vosmaer <contact@jacobvosmaer.nl> | 2014-02-25 11:58:58 +0100 |
commit | 38f4b61a588ffd515496a04663a2f3fa9178d161 (patch) | |
tree | df036f4afda6060b3709ae12964f99a0c8ee0e58 /lib/gitlab/popen.rb | |
parent | 8016cefafe97d3a143cf21b270c110d357e46273 (diff) | |
download | gitlab-ce-38f4b61a588ffd515496a04663a2f3fa9178d161.tar.gz |
Make it possible to call Gitlab::Popen.popen
Diffstat (limited to 'lib/gitlab/popen.rb')
-rw-r--r-- | lib/gitlab/popen.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/gitlab/popen.rb b/lib/gitlab/popen.rb index f9559012c4a..e2fbafb3899 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" |