Sha256: dd50d292eac43fd7507b410f74255e326d34782c0e0f7622567cdf71a1d36084
Contents?: true
Size: 540 Bytes
Versions: 1
Compression:
Stored size: 540 Bytes
Contents
# frozen_string_literal: true require "securerandom" require "rack" require "rackup/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 puts "Frequency: #{PumaWorkerKiller.frequency}" if ENV["PUMA_FREQUENCY"] class HelloWorld def response(_env) [200, {}, ["Hello World"]] end end class HelloWorldApp def self.call(env) HelloWorld.new.response(env) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
puma_worker_killer-1.0.0 | test/fixtures/fixture_helper.rb |