Sha256: 28a28edd370b2746a69987dcbe767ea1656b9ab150d1e003727accdd60f376b7

Contents?: true

Size: 453 Bytes

Versions: 2

Compression:

Stored size: 453 Bytes

Contents

require 'rack'
require 'rack/server'

require 'puma_worker_killer'

PumaWorkerKiller.config do |config|
  config.ram       = Integer(ENV['PUMA_RAM'])       if ENV['PUMA_RAM']
  config.frequency = Integer(ENV['PUMA_FREQUENCY']) if ENV['PUMA_FREQUENCY']
end
PumaWorkerKiller.start


class HelloWorld
  def response
    [200, {}, ['Hello World']]
  end
end

class HelloWorldApp
  def self.call(env)
    HelloWorld.new.response
  end
end

run HelloWorldApp

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
puma_worker_killer-0.0.3 test/fixtures/app.ru
puma_worker_killer-0.0.2 test/fixtures/app.ru