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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-02-15 09:09:11 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-02-15 09:09:11 +0300
commita7d1525878904f2f8326baf1c8108f2204ac50cb (patch)
treeda855edafb086adebe33c5eed462d753b58e2836 /lib/gitlab/runtime.rb
parentb69f406585ff64b1c5140ebba775cc754fabb358 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/runtime.rb')
-rw-r--r--lib/gitlab/runtime.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/gitlab/runtime.rb b/lib/gitlab/runtime.rb
index 182c13980e6..3f6361c7276 100644
--- a/lib/gitlab/runtime.rb
+++ b/lib/gitlab/runtime.rb
@@ -12,6 +12,7 @@ module Gitlab
:console,
:geo_log_cursor,
:puma,
+ :rails_runner,
:rake,
:sidekiq,
:test_suite,
@@ -64,6 +65,10 @@ module Gitlab
!!defined?(::GeoLogCursorOptionParser)
end
+ def rails_runner?
+ !!defined?(::Rails::Command::RunnerCommand)
+ end
+
def web_server?
puma? || unicorn?
end