- move require into register method

This commit is contained in:
Jordan Sissel 2011-08-17 17:31:18 -07:00
parent dbb8de214e
commit d8ce014087

View file

@ -1,6 +1,5 @@
require "logstash/outputs/base"
require "logstash/namespace"
require "gmetric"
# This output allows you to pull metrics from your logs and ship them to
# ganglia's gmond. This is heavily based on the graphite output.
@ -35,7 +34,7 @@ class LogStash::Outputs::Ganglia < LogStash::Outputs::Base
config :dmax, :validate => :number, :default => 300
def register
# No register action required, stateless
require "gmetric"
end # def register
public