Do gitolite calls async. Remove satellite with project remove
This commit is contained in:
parent
b4f16faafd
commit
1c5876eb7b
12 changed files with 90 additions and 52 deletions
18
lib/gitlab/popen.rb
Normal file
18
lib/gitlab/popen.rb
Normal file
|
@ -0,0 +1,18 @@
|
|||
module Gitlab
|
||||
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
|
Loading…
Add table
Add a link
Reference in a new issue