Module: Fluent::DataEntryPreferenceConfigurable::ClassMethods

Defined in:
lib/flydata/fluent-plugins/flydata_plugin_ext/preference.rb

Instance Method Summary collapse

Instance Method Details

#custom_config_param(key, type, option = {}) ⇒ Object



64
65
66
67
# File 'lib/flydata/fluent-plugins/flydata_plugin_ext/preference.rb', line 64

def custom_config_param(key, type, option = {})
  conf = @supported_custom_confs
  conf[type.to_sym][key.to_sym] = option
end

#register_config_params(config_params) ⇒ Object



56
57
58
59
60
61
62
# File 'lib/flydata/fluent-plugins/flydata_plugin_ext/preference.rb', line 56

def register_config_params(config_params)
  config_params.each do |type, custom_conf|
    custom_conf.each do |key, option|
      custom_config_param key, type, option
    end
  end
end