This class is refactored using Fluent::Registry at v0.14
# File lib/fluent/plugin.rb, line 21 def initialize @input = {} @output = {} @filter = {} @buffer = {} end
# File lib/fluent/plugin.rb, line 91 def load_plugin(type, name) try_load_plugin(name, type) end
# File lib/fluent/plugin.rb, line 81 def load_plugin_dir(dir) dir = File.expand_path(dir) Dir.entries(dir).sort.each {|fname| if fname =~ /\.rb$/ require File.join(dir, fname) end } nil end
# File lib/fluent/plugin.rb, line 76 def load_plugins dir = File.join(File.dirname(__FILE__), "plugin") load_plugin_dir(dir) end
# File lib/fluent/plugin.rb, line 64 def new_buffer(type) new_impl('buffer', @buffer, type) end
# File lib/fluent/plugin.rb, line 60 def new_filter(type) new_impl('filter', @filter, type) end
# File lib/fluent/plugin.rb, line 72 def new_formatter(type) TextFormatter.lookup(type) end
# File lib/fluent/plugin.rb, line 52 def new_input(type) new_impl('input', @input, type) end
# File lib/fluent/plugin.rb, line 56 def new_output(type) new_impl('output', @output, type) end
# File lib/fluent/plugin.rb, line 68 def new_parser(type) TextParser.lookup(type) end
# File lib/fluent/plugin.rb, line 40 def register_buffer(type, klass) register_impl('buffer', @buffer, type, klass) end
# File lib/fluent/plugin.rb, line 36 def register_filter(type, klass) register_impl('filter', @filter, type, klass) end
# File lib/fluent/plugin.rb, line 48 def register_formatter(type, klass) TextFormatter.register_template(type, klass) end
# File lib/fluent/plugin.rb, line 28 def register_input(type, klass) register_impl('input', @input, type, klass) end
Generated with the Darkfish Rdoc Generator 2.