_docker/control.rb
def start_and_wait_for_supporting_services(environment, supporting_services, system_exec)

  unless supporting_services.nil? or supporting_services.empty?
    puts 'Starting all required supporting services...'

    system_exec.execute_docker_compose(environment, :up, %w(-d --no-recreate).concat(supporting_services))

    bind_drupal_container_details_into_environment(environment, supporting_services)
    bind_searchisko_container_details_into_environment(environment, supporting_services)
    environment.template_resources

    wait_for_searchisko_to_start(environment, supporting_services)
    wait_for_drupal_to_start(environment, supporting_services)

    puts 'Started all required supporting services.'
  else
    puts 'No supporting services to start.'
  end
end
#
# Starts any required supporting services (if any), and then waits for them to be
# reported as up before continuing
#
Starts any required supporting services (if any), and then waits for them to be
reported as up before continuing
Starts any required supporting services ( if any ) and then waits for them to be reported as up before continuing
def start_and_wait_for_supporting_services(environment, supporting_services, system_exec)
  unless supporting_services.nil? or supporting_services.empty?
    puts 'Starting all required supporting services...'
    system_exec.execute_docker_compose(environment, :up, %w(-d --no-recreate).concat(supporting_services))
    bind_drupal_container_details_into_environment(environment, supporting_services)
    bind_searchisko_container_details_into_environment(environment, supporting_services)
    environment.template_resources
    wait_for_searchisko_to_start(environment, supporting_services)
    wait_for_drupal_to_start(environment, supporting_services)
    puts 'Started all required supporting services.'
  else
    puts 'No supporting services to start.'
  end
end
def start_and_wait_for_supporting_services ( environment , supporting_services , system_exec ) unless supporting_services . nil? or supporting_services . empty? puts 'Starting all required supporting services...' system_exec . execute_docker_compose ( environment , :up , %w( -d --no-recreate ) . concat ( supporting_services ) ) bind_drupal_container_details_into_environment ( environment , supporting_services ) bind_searchisko_container_details_into_environment ( environment , supporting_services ) environment . template_resources wait_for_searchisko_to_start ( environment , supporting_services ) wait_for_drupal_to_start ( environment , supporting_services ) puts 'Started all required supporting services.' else puts 'No supporting services to start.' end end
Starts any required supporting services (if any), and then waits for them to be
reported as up before continuing
Starts any required supporting services ( if any ) and then waits for them to be reported as up before continuing
environment
supporting_services
system_exec