module Fluent::SystemConfig::Mixin
Public Instance Methods
system_config()
click to toggle source
# File lib/fluent/system_config.rb, line 167 def system_config require 'fluent/engine' unless defined?($_system_config) $_system_config = nil end (instance_variable_defined?("@_system_config") && @_system_config) || $_system_config || Fluent::Engine.system_config end
system_config_override(opts={})
click to toggle source
# File lib/fluent/system_config.rb, line 176 def system_config_override(opts={}) require 'fluent/engine' if !instance_variable_defined?("@_system_config") || @_system_config.nil? @_system_config = (defined?($_system_config) && $_system_config ? $_system_config : Fluent::Engine.system_config).dup end opts.each_pair do |key, value| @_system_config.__send__(:"#{key.to_s}=", value) end end