Sha256: 89d73872985d076363f657d24536fd5548efb4ea11d5bdbc920e7dd2d4cf0b31

Contents?: true

Size: 674 Bytes

Versions: 15

Compression:

Stored size: 674 Bytes

Contents

# encoding: utf-8
# This file is distributed under New Relic's license terms.
# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details.

DependencyDetection.defer do
  named :puma

  depends_on do
    defined?(::Puma) &&
      defined?(::Puma::Const::VERSION) &&
      NewRelic::VersionNumber.new(::Puma::Const::VERSION) > NewRelic::VersionNumber.new("2.0.0") &&
      ::Puma.respond_to?(:cli_config)
  end

  executes do
    ::NewRelic::Agent.logger.info 'Installing Puma cluster mode support'
  end

  executes do
    Puma.cli_config.options[:worker_boot] << Proc.new do
      ::NewRelic::Agent.after_fork(:force_reconnect => true)
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
newrelic_rpm-3.7.3.199 lib/new_relic/agent/instrumentation/puma.rb
newrelic_rpm-3.7.2.195 lib/new_relic/agent/instrumentation/puma.rb
newrelic_rpm-3.7.2.192 lib/new_relic/agent/instrumentation/puma.rb
newrelic_rpm-3.7.2.190.beta lib/new_relic/agent/instrumentation/puma.rb
newrelic_rpm-3.7.1.188 lib/new_relic/agent/instrumentation/puma.rb
newrelic_rpm-3.7.1.182 lib/new_relic/agent/instrumentation/puma.rb
newrelic_rpm-3.7.1.180 lib/new_relic/agent/instrumentation/puma.rb
newrelic_rpm-3.7.0.177 lib/new_relic/agent/instrumentation/puma.rb
newrelic_rpm-3.7.0.174.beta lib/new_relic/agent/instrumentation/puma.rb
newrelic_rpm-3.6.9.171 lib/new_relic/agent/instrumentation/puma.rb
newrelic_rpm-3.6.8.168 lib/new_relic/agent/instrumentation/puma.rb
newrelic_rpm-3.6.8.164 lib/new_relic/agent/instrumentation/puma.rb
newrelic_rpm-3.6.7.159 lib/new_relic/agent/instrumentation/puma.rb
newrelic_rpm-3.6.7.159.beta lib/new_relic/agent/instrumentation/puma.rb
newrelic_rpm-3.6.7.152 lib/new_relic/agent/instrumentation/puma.rb