Commit 7a2396a7 authored by Ash McKenzie's avatar Ash McKenzie

Add new #docker_exec for QA::Service::Omnibus

parent ea5874f6
...@@ -9,11 +9,12 @@ module QA ...@@ -9,11 +9,12 @@ module QA
end end
def gitlab_ctl(command, input: nil) def gitlab_ctl(command, input: nil)
if input.nil? docker_exec("gitlab-ctl #{command}", input: input)
shell "docker exec #{@name} gitlab-ctl #{command}"
else
shell "docker exec #{@name} bash -c '#{input} | gitlab-ctl #{command}'"
end end
def docker_exec(command, input: nil)
command = "#{input} | #{command}" if input
shell "docker exec #{@name} bash -c '#{command}'"
end end
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment