Sha256: c83de81162d0e194f0b49681c431df8cd01896fb7dbbd4ed5214a875ea92dc5a

Contents?: true

Size: 363 Bytes

Versions: 33

Compression:

Stored size: 363 Bytes

Contents

# encoding: utf-8

module OneApm
  module Agent
    class Restart

      def initialize(events)
        events.subscribe(:agent_restart, &method(:restart))
      end

      def restart
        OneApm::Manager.logger.info "Restarting Agent..."
        OneApm::Manager.restart
        OneApm::Manager.logger.info "Restarted Agent done."
      end
    end
  end
end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
oneapm_rpm-1.2.9.rc1 lib/one_apm/agent/agent/restart.rb
oneapm_rpm-1.2.8 lib/one_apm/agent/agent/restart.rb
oneapm_rpm-1.2.8.rc1 lib/one_apm/agent/agent/restart.rb
oneapm_rpm-1.2.7 lib/one_apm/agent/agent/restart.rb
oneapm_rpm-1.2.7.rc1 lib/one_apm/agent/agent/restart.rb
oneapm_rpm-1.2.6 lib/one_apm/agent/agent/restart.rb
oneapm_rpm-1.2.6.rc1 lib/one_apm/agent/agent/restart.rb
oneapm_rpm-1.2.5 lib/one_apm/agent/agent/restart.rb
oneapm_rpm-1.2.5.rc1 lib/one_apm/agent/agent/restart.rb
oneapm_rpm-1.2.4 lib/one_apm/agent/agent/restart.rb
oneapm_rpm-1.2.4.rc1 lib/one_apm/agent/agent/restart.rb
oneapm_rpm-1.2.3 lib/one_apm/agent/agent/restart.rb
oneapm_rpm-1.2.3.rc2 lib/one_apm/agent/agent/restart.rb