summaryrefslogtreecommitdiff
path: root/lib/oxidized/config/core.rb
AgeCommit message (Collapse)Author
2014-04-14Use 'asetus' for configuration filesSaku Ytti
Main benefits a) we get support for system wide configs b) we don't use symbols in config file, they're confusing to non-rubyist
2014-02-27Switch to syslog instead of fileSaku Ytti
1.9.3 does not have Syslog::Logger so in 1.9.3 keep on logging to files
2014-02-26Switch OpenStruct#to_h to #marshal_dump for 1.9Saku Ytti
1.9 does not have #to_h, unnecessarily breaks compatibility downwards
2014-02-25Fix crashes on missing configSaku Ytti
We now merge user config with bootstrap config ensuring all configuratio options are set even if not in configuratatin. Allowing us to add new configuration options, without needing for users to touch their existing configuration. All default values are still written to user config when ever CFG.save is called, which means when you change your output/input/source models and configuration is missing, instead of just adding the configuration needed for that particular module, it'll save full config to file. Don't really think that is a bug, but might be something to fix later on with maybe parameter to 'save'. Which would load user config, merge it with 'save' argument level and save user config. But unless someone is bothered by it, I won't do it. This commit fixes #1
2014-02-23Migrate to sinatra/puma from webrickSaku Ytti
As I can't do IO#select on sinatra/puma to run it when I have time, I have to run it on separate thread. This means Nodes container needs to be thread safe, it now has ghetto mutex locking, but I probably need to be be more focused what are the external methods that can be called and wrap those in @mutex.synchronize Provide also HTML UI not just JSON for ghetto UI to people who don't want to integrate
2013-04-17Initial commitSaku Ytti
Silly for shit-and-giggles attempt at rancid