diff --git a/display.rb b/display.rb index 2226bbf..a481167 100755 --- a/display.rb +++ b/display.rb @@ -22,7 +22,7 @@ require 'active_support' require 'active_support/core_ext/object/to_query' -config = IniFile.new(File.read("./tboxanalysis.ini")) +config = IniFile.load("./tboxanalysis.ini") sdb = AWS::SimpleDB.new(:access_key_id => config['aws']['access_key'], :secret_access_key => config['aws']['secret_key']) diff --git a/readscript.rb b/readscript.rb index e6badac..2d6ddb3 100755 --- a/readscript.rb +++ b/readscript.rb @@ -24,7 +24,7 @@ warnings = Regexp.new("(Tinderbox QA Warning!|QA Notice: (Pre-stripped|file does not exist|command not found|USE flag|Files built without respecting|The following files)|linux_config_exists|will always overflow|called with bigger|maintainer mode detected|econf called in src_compile|udev rules should be installed)") -config = IniFile.new(File.read("./tboxanalysis.ini")) +config = IniFile.load("./tboxanalysis.ini") s3 = AWS::S3.new(:access_key_id => config['aws']['access_key'], :secret_access_key => config['aws']['secret_key'])