Sha256: 1215e05afdb0561cd7c43e350edae4abe24ce6a90e1ee52a0df45ae9dfd19274
Contents?: true
Size: 474 Bytes
Versions: 4
Compression:
Stored size: 474 Bytes
Contents
module Gitlab module Git module Popen def popen(cmd, path) vars = { "PWD" => path } options = { :chdir => path } @cmd_output = "" @cmd_status = 0 Open3.popen3(vars, cmd, options) do |stdin, stdout, stderr, wait_thr| @cmd_status = wait_thr.value.exitstatus @cmd_output << stdout.read @cmd_output << stderr.read end return @cmd_output, @cmd_status end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
gitlab_git-1.0.5 | lib/gitlab_git/popen.rb |
gitlab_git-1.0.4 | lib/gitlab_git/popen.rb |
gitlab_git-1.0.3 | lib/gitlab_git/popen.rb |
gitlab_git-1.0.2 | lib/gitlab_git/popen.rb |