Because of the way module loading works in Ruby the original method I had in place doesnt really work. The values for plugin_type and plugin_name will always be nil.
Because of the way module loading works in Ruby the original method I
had in place doesnt really work. The values for plugin_type and
plugin_name will always be nil.

I moved this to a more standard factory pattern which seems to be
working well.

plugin_class needs to be cleaned up a little still. I don't really like
the triple method chain.

miah/chef_logstash