module Fluentspec
Constants
- VERSION
Public Instance Methods
cleanup()
click to toggle source
# File lib/fluentspec.rb, line 44 def cleanup @sv.reset @ready = false end
engine()
click to toggle source
# File lib/fluentspec.rb, line 20 def engine ::Fluent::Engine if Fluentspec.ready? end
event_router()
click to toggle source
# File lib/fluentspec.rb, line 40 def event_router Fluentspec.root_agent.event_router if Fluentspec.ready? end
filters()
click to toggle source
# File lib/fluentspec.rb, line 32 def filters Fluentspec.root_agent.filters if Fluentspec.ready? end
inputs()
click to toggle source
# File lib/fluentspec.rb, line 28 def inputs Fluentspec.root_agent.inputs if Fluentspec.ready? end
outputs()
click to toggle source
# File lib/fluentspec.rb, line 36 def outputs Fluentspec.root_agent.outputs if Fluentspec.ready? end
ready?()
click to toggle source
# File lib/fluentspec.rb, line 11 def ready? @ready ||= false end
root_agent()
click to toggle source
# File lib/fluentspec.rb, line 24 def root_agent Fluentspec.engine.root_agent if Fluentspec.ready? end
setup(config_file_path)
click to toggle source
# File lib/fluentspec.rb, line 15 def setup(config_file_path) @sv = Supervisor.new(config_file_path) @ready = true end