From 67318061c9a57465e65a8d04190730ee0a94a1d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20Elio=20Petten=C3=B2?= Date: Sun, 19 Oct 2014 10:41:26 -0700 Subject: [PATCH] Update for inifile 3. --- display.rb | 2 +- readscript.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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'])