blob: c5cddff56cd002672853ef015aa1867d547e0cb7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
# frozen_string_literal: true
module QA
module Service
class Omnibus
include Scenario::Actable
include Service::Shellout
def initialize(container)
@name = container
end
def gitlab_ctl(command, input: nil)
docker_exec("gitlab-ctl #{command}", input: input)
end
def docker_exec(command, input: nil)
command = "#{input} | #{command}" if input
shell "docker exec #{@name} bash -c '#{command}'"
end
end
end
end
|