Method: Fluent::SystemConfig::Mixin#system_config_override
- Defined in:
- lib/fluent/system_config.rb
#system_config_override(opts = {}) ⇒ Object
178 179 180 181 182 183 184 185 186 |
# File 'lib/fluent/system_config.rb', line 178 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 |