Yesterday I noticed that I will need a config file. For instance if I want to call a dos command like srvrmgr.exe (Siebel ServerManager) I need to be able to configure the path to srvrmgr.exe. Also there might be more then one srvrmgr.exe binaries around and I need to make sure the right one is executed...
After short time of googling "ruby read config file" and some other keywords the decision was obvious: I will use YAML [ToDo: learn YAML]
http://www.5dollarwhitebox.org/drupal/?q=node/21
--> does not seem to be sophisticated
--> what?!? No tests, only "# FIX ME AND WRITE TESTS" in "test_parse_config.rb". No way I will use this hack...
http://otype.de/index.php?id=151
--> straigthforward, should work
--> but most probably not powerfull enough for more tricky demands
http://blog.innovativethought.net/2007/07/25/making-configuration-files-with-yaml/
http://yaml.kwiki.org/?YamlInFiveMinutes
http://www.yaml.org/YAML_for_ruby.html
--> if YAML is so easy, I don't see any reason not to use it
--> and learning YAML is a must for rails anyhow (afaik)
Keine Kommentare:
Kommentar veröffentlichen