debian-mirror-gitlab/app/controllers/unicorn_test_controller.rb
2017-08-17 22:00:37 +05:30

12 lines
241 B
Ruby

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