Sha256: 96c3c078ed1cd3eeadcf839f1096b63be4b152716bf225d0122f6aaefceeeee6

Contents?: true

Size: 307 Bytes

Versions: 18

Compression:

Stored size: 307 Bytes

Contents

if defined?(::Puma) && ::Puma.respond_to?(:cli_config)
  Appsignal.logger.info('Loading Puma integration')

  if ::Puma.cli_config
    ::Puma.cli_config.options[:before_worker_shutdown] ||= []
    ::Puma.cli_config.options[:before_worker_shutdown] << Proc.new do |id|
      Appsignal.stop
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
appsignal-0.12.rc.7 lib/appsignal/integrations/puma.rb
appsignal-0.12.rc.6 lib/appsignal/integrations/puma.rb
appsignal-0.12.rc.5 lib/appsignal/integrations/puma.rb
appsignal-0.12.beta.54 lib/appsignal/integrations/puma.rb
appsignal-0.12.beta.53 lib/appsignal/integrations/puma.rb
appsignal-0.12.beta.52 lib/appsignal/integrations/puma.rb
appsignal-0.12.beta.51 lib/appsignal/integrations/puma.rb
appsignal-0.12.beta.50 lib/appsignal/integrations/puma.rb
appsignal-0.12.beta.49 lib/appsignal/integrations/puma.rb
appsignal-0.12.beta.48 lib/appsignal/integrations/puma.rb
appsignal-0.12.beta.47 lib/appsignal/integrations/puma.rb
appsignal-0.12.beta.46 lib/appsignal/integrations/puma.rb
appsignal-0.12.beta.45 lib/appsignal/integrations/puma.rb
appsignal-0.12.beta.44 lib/appsignal/integrations/puma.rb
appsignal-0.12.beta.43 lib/appsignal/integrations/puma.rb
appsignal-0.12.beta.42 lib/appsignal/integrations/puma.rb
appsignal-0.12.beta.41 lib/appsignal/integrations/puma.rb
appsignal-0.12.beta.40 lib/appsignal/integrations/puma.rb