BigW Consortium Gitlab

unicorn_test_controller.rb 259 Bytes
Newer Older
1
# :nocov:
2 3 4 5 6
if Rails.env.test?
  class UnicornTestController < ActionController::Base
    def pid
      render plain: Process.pid.to_s
    end
7

8 9 10 11 12 13
    def kill
      Process.kill(params[:signal], Process.pid)
      render plain: 'Bye!'
    end
  end
end
14
# :nocov: