Moving settings to a separate file
Closed this issue · 4 comments
z411 commented
Hi,
I propose moving the settings to a separate file (settings.pl) that's included by erebus.pl to make working on it through git while keeping the configuration easier. I can submit a PR if you want.
Cheers.
incognico commented
I could do that but I would use a yaml or toml config file then.
incognico commented
I'm gonna use TOML::Tiny and add support for a command line argument to supply a custom config file, defaulting to config.toml.
Edit: The Tiny modules don't support the regexes, I have to use YAML::XS.
z411 commented
Thank you! This helps a lot to modify the script and also to run several instances of it for different servers.