Class: Chef::Handler::Graylog::GelfStartHandler
- Inherits:
-
Chef::Handler
- Object
- Chef::Handler
- Chef::Handler::Graylog::GelfStartHandler
- Defined in:
- lib/chef/handler/graylog/gelf_start_handler.rb
Instance Method Summary collapse
-
#initialize(server_uri, config = {}) ⇒ GelfStartHandler
constructor
A new instance of GelfStartHandler.
- #report ⇒ Object
Constructor Details
#initialize(server_uri, config = {}) ⇒ GelfStartHandler
Returns a new instance of GelfStartHandler.
9 10 11 |
# File 'lib/chef/handler/graylog/gelf_start_handler.rb', line 9 def initialize(server_uri, config = {}) @sender = Graylog::Sender::Http.new(server_uri, config) end |
Instance Method Details
#report ⇒ Object
13 14 15 |
# File 'lib/chef/handler/graylog/gelf_start_handler.rb', line 13 def report @run_status.events.register(Graylog::GelfEventHandler.new(@sender)) end |