Class: OneApm::Agent::Restart
- Inherits:
-
Object
- Object
- OneApm::Agent::Restart
- Defined in:
- lib/one_apm/agent/agent/restart.rb
Instance Method Summary collapse
-
#initialize(events) ⇒ Restart
constructor
A new instance of Restart.
- #restart ⇒ Object
Constructor Details
#initialize(events) ⇒ Restart
Returns a new instance of Restart.
7 8 9 |
# File 'lib/one_apm/agent/agent/restart.rb', line 7 def initialize(events) events.subscribe(:agent_restart, &method(:restart)) end |