Welcome to mirror list, hosted at ThFree Co, Russian Federation.

unicorn_test_controller.rb « controllers « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ed04bd1f77d5af9a008f30275d314eaea20dee52 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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: