diff options
author | Clement Ho <ClemMakesApps@gmail.com> | 2018-02-07 17:40:46 -0600 |
---|---|---|
committer | Clement Ho <ClemMakesApps@gmail.com> | 2018-02-07 17:40:46 -0600 |
commit | c1c74e608625eab143f44ef6940e64cca6af0a0c (patch) | |
tree | c5ca4a8a39946f54878a3ecde6b4adcda11d2d9b /qa/qa/service/omnibus.rb | |
parent | cecea7529fb37893af6bf514a53e239a3be1eea6 (diff) | |
parent | 8900b23eab6abd5a6c01278fa0da18d5bed98491 (diff) | |
download | gitlab-ce-c1c74e608625eab143f44ef6940e64cca6af0a0c.tar.gz |
Merge branch 'master' into fix-no-template
Diffstat (limited to 'qa/qa/service/omnibus.rb')
-rw-r--r-- | qa/qa/service/omnibus.rb | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/qa/qa/service/omnibus.rb b/qa/qa/service/omnibus.rb new file mode 100644 index 00000000000..b5c06874e5c --- /dev/null +++ b/qa/qa/service/omnibus.rb @@ -0,0 +1,20 @@ +module QA + module Service + class Omnibus + include Scenario::Actable + include Service::Shellout + + def initialize(container) + @name = container + end + + def gitlab_ctl(command, input: nil) + if input.nil? + shell "docker exec #{@name} gitlab-ctl #{command}" + else + shell "docker exec #{@name} bash -c '#{input} | gitlab-ctl #{command}'" + end + end + end + end +end |