Method: Gitlab::QA::Runtime::Env#require_ssh_tunnel!
- Defined in:
- lib/gitlab/qa/runtime/env.rb
#require_ssh_tunnel! ⇒ Object
323 324 325 326 327 328 329 |
# File 'lib/gitlab/qa/runtime/env.rb', line 323 def require_ssh_tunnel! %w[TUNNEL_SSH_PRIVATE_KEY TUNNEL_SERVER_HOSTNAME TUNNEL_SSH_USER].each do |env_key| unless ENV.key?(env_key) raise ArgumentError, "Environment variable #{env_key} must be set to run tunnel specs" end end end |