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.4.2 lib/one_apm/agent/agent/restart.rb
oneapm_rpm-1.4.1 lib/one_apm/agent/agent/restart.rb
oneapm_rpm-1.4.0 lib/one_apm/agent/agent/restart.rb
oneapm_rpm-1.3.7 lib/one_apm/agent/agent/restart.rb
oneapm_rpm-1.3.7.rc1 lib/one_apm/agent/agent/restart.rb
oneapm_rpm-1.3.6 lib/one_apm/agent/agent/restart.rb
oneapm_rpm-1.3.6.rc1 lib/one_apm/agent/agent/restart.rb
oneapm_rpm-1.3.5 lib/one_apm/agent/agent/restart.rb
oneapm_rpm-1.3.5.rc1 lib/one_apm/agent/agent/restart.rb
oneapm_rpm-1.3.4 lib/one_apm/agent/agent/restart.rb
oneapm_rpm-1.3.4.rc1 lib/one_apm/agent/agent/restart.rb
oneapm_rpm-1.3.3 lib/one_apm/agent/agent/restart.rb
oneapm_rpm-1.3.3.rc1 lib/one_apm/agent/agent/restart.rb
oneapm_rpm-1.3.2 lib/one_apm/agent/agent/restart.rb
oneapm_rpm-1.3.2.rc1 lib/one_apm/agent/agent/restart.rb
oneapm_rpm-1.3.1 lib/one_apm/agent/agent/restart.rb
oneapm_rpm-1.3.1.rc1 lib/one_apm/agent/agent/restart.rb
oneapm_rpm-1.3.0 lib/one_apm/agent/agent/restart.rb
oneapm_rpm-1.3.0.rc1 lib/one_apm/agent/agent/restart.rb
oneapm_rpm-1.2.9 lib/one_apm/agent/agent/restart.rb