gitlab-org--gitlab-foss/app/controllers/unicorn_test_controller.rb

13 lines
241 B
Ruby
Raw Normal View History

if Rails.env.test?
class UnicornTestController < ActionController::Base
def pid
render plain: Process.pid.to_s
end
def kill
Process.kill(params[:signal], Process.pid)
render plain: 'Bye!'
end
end
end