Commit b55a5eab authored by Stan Hu's avatar Stan Hu

Merge branch 'rails-runner-runtime' into 'master'

Add the rails runner command as a known runtime

Closes #205702

See merge request gitlab-org/gitlab!25291
parents 7477d032 be85e10a
......@@ -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
......
......@@ -97,4 +97,12 @@ describe Gitlab::Runtime do
it_behaves_like "valid runtime", :geo_log_cursor, 1
end
context "rails runner" do
before do
stub_const('::Rails::Command::RunnerCommand', double('::Rails::Command::RunnerCommand'))
end
it_behaves_like "valid runtime", :rails_runner, 1
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment