Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Make it all use inifile 2.

  • Loading branch information...
commit 6c6f25a843c773a6e0e89db98e2edf503eec2133 1 parent 56ae55b
@Flameeyes Flameeyes authored
Showing with 5 additions and 3 deletions.
  1. +1 −1  Gemfile
  2. +2 −1  display.rb
  3. +2 −1  readscript.rb
View
2  Gemfile
@@ -1,5 +1,5 @@
gem 'aws-sdk'
-gem 'inifile'
+gem 'inifile', '>= 2'
group :analysis do
gem 'archive-tar-minitar'
View
3  display.rb
@@ -15,13 +15,14 @@
# ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
# SOFTWARE.
+gem 'inifile', '>= 2'
require 'inifile'
require 'aws'
require 'sinatra'
require 'active_support'
require 'active_support/core_ext/object/to_query'
-config = IniFile.new("./tboxanalysis.ini")
+config = IniFile.new(File.read("./tboxanalysis.ini"))
sdb = AWS::SimpleDB.new(:access_key_id => config['aws']['access_key'],
:secret_access_key => config['aws']['secret_key'])
View
3  readscript.rb
@@ -15,6 +15,7 @@
# ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
# SOFTWARE.
+gem 'inifile', '>= 2'
require 'inifile'
require 'aws'
require 'socket'
@@ -23,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)")
-config = IniFile.new("./tboxanalysis.ini")
+config = IniFile.new(File.read("./tboxanalysis.ini"))
s3 = AWS::S3.new(:access_key_id => config['aws']['access_key'],
:secret_access_key => config['aws']['secret_key'])
Please sign in to comment.
Something went wrong with that request. Please try again.