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.2.6 lib/one_apm/inst/dispatcher/puma.rb
oneapm_rpm-1.2.6.rc1 lib/one_apm/inst/dispatcher/puma.rb
oneapm_rpm-1.2.5 lib/one_apm/inst/dispatcher/puma.rb
oneapm_rpm-1.2.5.rc1 lib/one_apm/inst/dispatcher/puma.rb
oneapm_rpm-1.2.4 lib/one_apm/inst/dispatcher/puma.rb
oneapm_rpm-1.2.4.rc1 lib/one_apm/inst/dispatcher/puma.rb
oneapm_rpm-1.2.3 lib/one_apm/inst/dispatcher/puma.rb
oneapm_rpm-1.2.3.rc2 lib/one_apm/inst/dispatcher/puma.rb
oneapm_rpm-1.2.2 lib/one_apm/inst/dispatcher/puma.rb
oneapm_rpm-1.2.2.rc lib/one_apm/inst/dispatcher/puma.rb
oneapm_rpm-1.2.1 lib/one_apm/inst/dispatcher/puma.rb
oneapm_rpm-1.2.1.rc lib/one_apm/inst/dispatcher/puma.rb
oneapm_rpm-1.2.0 lib/one_apm/inst/dispatcher/puma.rb
oneapm_rpm-1.1.3 lib/one_apm/inst/dispatcher/puma.rb