Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/ruby
require 'rubygems'
require 'active_record'
require 'active_support'
require 'parseconfig'
config = ParseConfig.new( '/path/to/conf/file.conf' )
db_number = Integer(config.get_value( 'database_count' ))