diff options
Diffstat (limited to 'app/controllers/unicorn_test_controller.rb')
-rw-r--r-- | app/controllers/unicorn_test_controller.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/app/controllers/unicorn_test_controller.rb b/app/controllers/unicorn_test_controller.rb new file mode 100644 index 00000000000..ed04bd1f77d --- /dev/null +++ b/app/controllers/unicorn_test_controller.rb @@ -0,0 +1,14 @@ +# :nocov: +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 +# :nocov: |