builder/extra/tools/ruby-tpm/configurator.rb
# Parse the get_default_filenames() files to override default values
# for all configurations
Parse the get_default_filenames() files to override default values
for all configurations
Parse the get_default_filenames () files to override default values for all configurations
def load_default_files
    get_default_filenames().each{
      |filename|
      if File.exist?(filename)
        File.open(filename, 'r') do |file|
          file.read.each_line do |line|
            line.strip!
            if (line =~ /^([\-\w\.]+)\s*=\s*(\S.*)/)
              ConfigurePrompt.add_global_default($1, $2)
            elsif (line =~ /^([\-\w\.]+)\s*=/)
              ConfigurePrompt.add_global_default($1, "")
            end
          end
        end
      end
    }
  end
def load_default_files get_default_filenames ( ) . each { | filename | if File . exist? ( filename ) File . open ( filename , 'r' ) do | file | file . read . each_line do | line | line . strip! if ( line =~ / ^([ \- \w \. ]+) \s *= \s *( \S .*) / ) ConfigurePrompt . add_global_default ( $1 , $2 ) elsif ( line =~ / ^([ \- \w \. ]+) \s *= / ) ConfigurePrompt . add_global_default ( $1 , "" ) end end end end } end
Parse the get_default_filenames() files to override default values
for all configurations
Parse the get_default_filenames () files to override default values for all configurations