Sha256: 86472f5eef895dfc85fe0d3403537c2901c3fb06c4ed1de5142c482a79268bf5

Contents?: true

Size: 530 Bytes

Versions: 3

Compression:

Stored size: 530 Bytes

Contents

require 'yaml'

require 'iowa/Constants'
require 'iowa/Hash'

module Iowa
  @config = Hash.new{|h,k| h[k] = Hash.new {|h2,k2| h2[k2] = {}}}
  def Iowa.version; '0.99.3.5'; end
  def Iowa.readConfiguration(configuration_file)
    begin
      File.open(configuration_file) do |cf|
        @config.step_merge! YAML::load(cf)
      end
    rescue Errno::ENOENT
    rescue Exception => exception
      puts "Failure while accessing the configuration file (#{configuration_file})\n"
      raise
    end
    checkConfiguration
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
IOWA-1.0.3 src/iowa/Config.rb
IOWA-1.0.2 src/iowa/Config.rb
IOWA-1.0.0 src/iowa/Config.rb