logstash/lib/config/agent.rb
Pete Fritchman 24169ef165 - refactor agent to be a real daemon
- refactor configs (all inherit from BaseConfig)
- move beef of agent code to lib/net/clients/
- use optionparser's ".order" instead of ".parse"
2009-10-20 17:40:44 +00:00

15 lines
356 B
Ruby

require "lib/config/base"
module LogStash; module Config
class AgentConfig < BaseConfig
attr_reader :sources
attr_reader :logstash_dir
def initialize(file)
super(file)
obj = YAML::load(File.open(file).read())
@sources = obj["sources"]
end # def initialize
end # class AgentConfig
end; end # module LogStash::Config