82
83
84
85
86
|
# File 'lib/gitlab/qa/docker/engine.rb', line 82
def exec(name, command)
cmd = ['exec']
cmd << '--privileged' if privileged_command?(command)
Docker::Command.execute(%(#{cmd.join(' ')} #{name} bash -c "#{command.gsub('"', '\\"')}"))
end
|