lib/main.rb in echi-converter-0.0.3 vs lib/main.rb in echi-converter-0.0.4

- old
+ new

@@ -4,16 +4,15 @@ #Determine our working directory @workingdirectory = File.expand_path(File.dirname(__FILE__)) require @workingdirectory + '/echi-converter.rb' include EchiConverter -#Load ActiveRecord Models -require @workingdirectory + '/database.rb' - -configfile = @workingdirectory + '/../config/application.yml' - #Open the configuration file +configfile = @workingdirectory + '/../config/application.yml' @config = YAML::load(File.open(configfile)) + +#Load ActiveRecord Models +require @workingdirectory + '/database.rb' #Load the configured schema schemafile = @workingdirectory + "/../config/" + @config["echi_schema"] @echi_schema = YAML::load(File.open(schemafile)) \ No newline at end of file