builder/extra/tools/ruby-tpm/configure/configure_prompt_handler.rb
def register_prompt(prompt_obj)    
    unless prompt_obj.is_a?(ConfigurePromptInterface)
      raise "Attempt to register invalid prompt #{prompt_obj.class} failed " +
        "because it does not extend ConfigurePromptInterface"
    end
    
    prompt_obj.set_config(@config)
    unless prompt_obj.is_initialized?()
      raise "#{prompt_obj.class().name()} cannot be used because it has not been properly initialized"
    end
    
    @prompts.push(prompt_obj)
    @key_index[prompt_obj.name] = prompt_obj
  end
# Validate the prompt object and add it to the queue
Validate the prompt object and add it to the queue
Validate the prompt object and add it to the queue
def register_prompt(prompt_obj)    
    unless prompt_obj.is_a?(ConfigurePromptInterface)
      raise "Attempt to register invalid prompt #{prompt_obj.class} failed " +
        "because it does not extend ConfigurePromptInterface"
    end
    prompt_obj.set_config(@config)
    unless prompt_obj.is_initialized?()
      raise "#{prompt_obj.class().name()} cannot be used because it has not been properly initialized"
    end
    @prompts.push(prompt_obj)
    @key_index[prompt_obj.name] = prompt_obj
  end
def register_prompt ( prompt_obj ) unless prompt_obj . is_a? ( ConfigurePromptInterface ) raise "Attempt to register invalid prompt #{prompt_obj.class} failed " + "because it does not extend ConfigurePromptInterface" end prompt_obj . set_config ( @config ) unless prompt_obj . is_initialized? ( ) raise "#{prompt_obj.class().name()} cannot be used because it has not been properly initialized" end @prompts . push ( prompt_obj ) @key_index [ prompt_obj . name ] = prompt_obj end
Validate the prompt object and add it to the queue
Validate the prompt object and add it to the queue
prompt_obj