This ruby module will parse a .conf file, here is how it works:
$ irb
The config_parser.rb
file need to be located in the same directory you run irb from
> load "config_parser.rb"
> include ConfigParser
The .conf file need to be in the same directory you are running irb from
> params = parse_it("test.conf")
> parms["host"]
returns "test.com"
> params["server_id"]
returns 55331
(a proper integer)
> params["server_load_alarm"]
returns 2.5
(a proper float)
all true/yes/on
values return the proper true
all false/no/off
values return the proper false