mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 14:47:19 -04:00
20 lines
361 B
Ruby
20 lines
361 B
Ruby
require "erb"
|
|
|
|
module LogStash::PluginManager
|
|
class RenderContext
|
|
def initialize(options = {})
|
|
options.each do |name, value|
|
|
define_singleton_method(name) { value }
|
|
end
|
|
end
|
|
|
|
def get_binding
|
|
binding()
|
|
end
|
|
|
|
def classify(klass_name)
|
|
klass_name.split(/-|_/).map { |e| e.capitalize }.join("")
|
|
end
|
|
|
|
end
|
|
end
|