Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Vosmaer <contact@jacobvosmaer.nl>2014-02-25 14:58:58 +0400
committerJacob Vosmaer <contact@jacobvosmaer.nl>2014-02-25 14:58:58 +0400
commit38f4b61a588ffd515496a04663a2f3fa9178d161 (patch)
treedf036f4afda6060b3709ae12964f99a0c8ee0e58 /lib/gitlab/popen.rb
parent8016cefafe97d3a143cf21b270c110d357e46273 (diff)
Make it possible to call Gitlab::Popen.popen
Diffstat (limited to 'lib/gitlab/popen.rb')
-rw-r--r--lib/gitlab/popen.rb2
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"