Sha256: 2f96ab10c062e1b41875417fe149c01874d96049830fc4c64cb2921d52b274ee

Contents?: true

Size: 487 Bytes

Versions: 34

Compression:

Stored size: 487 Bytes

Contents

# encoding: utf-8

LibraryDetection.defer do
  named :puma

  depends_on do
    defined?(::Puma) &&
      defined?(::Puma::Const::VERSION) &&
      ::Puma.respond_to?(:cli_config)
  end

  executes do
    OneApm::Manager.logger.info 'Installing Puma support'
  end

  executes do
    hooks = Puma.cli_config.options[:worker_boot] || Puma.cli_config.options[:before_worker_boot]

    hooks << Proc.new do
      OneApm::Manager.agent.after_fork(:force_reconnect => true)
    end
  end
end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
oneapm_rpm-1.3.6 lib/one_apm/inst/dispatcher/puma.rb
oneapm_rpm-1.3.6.rc1 lib/one_apm/inst/dispatcher/puma.rb
oneapm_rpm-1.3.5 lib/one_apm/inst/dispatcher/puma.rb
oneapm_rpm-1.3.5.rc1 lib/one_apm/inst/dispatcher/puma.rb
oneapm_rpm-1.3.4 lib/one_apm/inst/dispatcher/puma.rb
oneapm_rpm-1.3.4.rc1 lib/one_apm/inst/dispatcher/puma.rb
oneapm_rpm-1.3.3 lib/one_apm/inst/dispatcher/puma.rb
oneapm_rpm-1.3.3.rc1 lib/one_apm/inst/dispatcher/puma.rb
oneapm_rpm-1.3.2 lib/one_apm/inst/dispatcher/puma.rb
oneapm_rpm-1.3.2.rc1 lib/one_apm/inst/dispatcher/puma.rb
oneapm_rpm-1.3.1 lib/one_apm/inst/dispatcher/puma.rb
oneapm_rpm-1.3.1.rc1 lib/one_apm/inst/dispatcher/puma.rb
oneapm_rpm-1.3.0 lib/one_apm/inst/dispatcher/puma.rb
oneapm_rpm-1.3.0.rc1 lib/one_apm/inst/dispatcher/puma.rb
oneapm_rpm-1.2.9 lib/one_apm/inst/dispatcher/puma.rb
oneapm_rpm-1.2.9.rc1 lib/one_apm/inst/dispatcher/puma.rb
oneapm_rpm-1.2.8 lib/one_apm/inst/dispatcher/puma.rb
oneapm_rpm-1.2.8.rc1 lib/one_apm/inst/dispatcher/puma.rb
oneapm_rpm-1.2.7 lib/one_apm/inst/dispatcher/puma.rb
oneapm_rpm-1.2.7.rc1 lib/one_apm/inst/dispatcher/puma.rb