Method: Gitlab::QA::Component::Gitlab#process_exec_commands

Defined in:
lib/gitlab/qa/component/gitlab.rb

#process_exec_commandsObject



189
190
191
192
193
194
195
196
197
198
199
200
201
202
# File 'lib/gitlab/qa/component/gitlab.rb', line 189

def process_exec_commands
  @docker.copy(name, DATA_SEED_PATH, DATA_PATH) if seed_admin_token || seed_db

  exec_commands << seed_admin_token_command if seed_admin_token
  exec_commands << seed_test_data_command if seed_db
  exec_commands << Runtime::Scenario.omnibus_exec_commands
  exec_commands << add_git_server_hooks unless Runtime::Scenario.skip_server_hooks

  commands = exec_commands.flatten.uniq
  return if commands.empty?

  Runtime::Logger.info("Running exec_commands...")
  commands.each { |command| @docker.exec(name, command) }
end