methods/ai_client.rb
# Main code to configure AI client services
# Called from main code
Main code to configure AI client services
Called from main code
Main code to configure AI client services Called from main code
def configure_ai_client_services(options,service_base_name)
  handle_output(options,"")
  handle_output(options,"You will be presented with a set of questions followed by the default output")
  handle_output(options,"If you are happy with the default output simply hit enter")
  handle_output(options,"")
  service_list = []
  populate_ai_manifest_questions(options)
  process_questions(options)
  if service_base_name.to_s.match(/i386|sparc/)
    service_list[0] = get_service_base_name
  else
    service_list[0] = service_base_name+"_i386"
    service_list[1] = service_base_name+"_sparc"
  end
  service_list.each do |temp_name|
    output_file = options['workdir']+"/"+temp_name+"_ai_manifest.xml"
    create_ai_manifest(options,output_file)
    import_ai_manifest(output_file,temp_name)
  end
  return
end
def configure_ai_client_services ( options , service_base_name ) handle_output ( options , "" ) handle_output ( options , "You will be presented with a set of questions followed by the default output" ) handle_output ( options , "If you are happy with the default output simply hit enter" ) handle_output ( options , "" ) service_list = [ ] populate_ai_manifest_questions ( options ) process_questions ( options ) if service_base_name . to_s . match ( / i386|sparc / ) service_list [ 0 ] = get_service_base_name else service_list [ 0 ] = service_base_name + "_i386" service_list [ 1 ] = service_base_name + "_sparc" end service_list . each do | temp_name | output_file = options [ 'workdir' ] + "/" + temp_name + "_ai_manifest.xml" create_ai_manifest ( options , output_file ) import_ai_manifest ( output_file , temp_name ) end return end
Main code to configure AI client services
Called from main code
Main code to configure AI client services Called from main code
# Populate questions for AI manifest # Process questions # Set name of AI manifest file to create and import # Create manifest # Import AI manifest
options
<not_specific>
service_base_name
<not_specific>