Sha256: e79182a4f04b7a1c8de1fbd8625e21ded07ed1c09af73c4cf624b55f3a7292a4
Contents?: true
Size: 367 Bytes
Versions: 1
Compression:
Stored size: 367 Bytes
Contents
class SflowConfig attr_reader :switch_hash attr_reader :logstash_host attr_reader :logstash_port attr_reader :daemonize def initialize config = YAML.load_file("etc/config.yaml") @switch_hash = config['switch'] @logstash_host = config['logstash_host'] @logstash_port = config['logstash_port'] @daemonize = config['daemonize'] end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fluent-plugin-sflow-0.1.0 | lib/sflow/lib/sflow/config.rb |