diff options
author | Winnie Hellmann <winnie@gitlab.com> | 2019-09-03 16:37:47 +0300 |
---|---|---|
committer | Sean McGivern <sean@gitlab.com> | 2019-09-03 16:37:47 +0300 |
commit | ebb81978605a788f774f2a33fda00543b74be0af (patch) | |
tree | ca2e810dde1a2b89303afe66cf295048cb1917e6 /lib/system_check | |
parent | 7a07d9b2d38eb8fbef833a6ea7766b92aa2b37c5 (diff) |
Remove outdated mail_room check
Diffstat (limited to 'lib/system_check')
-rw-r--r-- | lib/system_check/incoming_email/foreman_configured_check.rb | 25 | ||||
-rw-r--r-- | lib/system_check/incoming_email_check.rb | 2 |
2 files changed, 0 insertions, 27 deletions
diff --git a/lib/system_check/incoming_email/foreman_configured_check.rb b/lib/system_check/incoming_email/foreman_configured_check.rb deleted file mode 100644 index 944913087da..00000000000 --- a/lib/system_check/incoming_email/foreman_configured_check.rb +++ /dev/null @@ -1,25 +0,0 @@ -# frozen_string_literal: true - -module SystemCheck - module IncomingEmail - class ForemanConfiguredCheck < SystemCheck::BaseCheck - set_name 'Foreman configured correctly?' - - def check? - path = Rails.root.join('Procfile') - - File.exist?(path) && File.read(path) =~ /^mail_room:/ - end - - def show_error - try_fixing_it( - 'Enable mail_room in your Procfile.' - ) - for_more_information( - 'doc/administration/reply_by_email.md' - ) - fix_and_rerun - end - end - end -end diff --git a/lib/system_check/incoming_email_check.rb b/lib/system_check/incoming_email_check.rb index 155b6547595..e0e1147711c 100644 --- a/lib/system_check/incoming_email_check.rb +++ b/lib/system_check/incoming_email_check.rb @@ -14,8 +14,6 @@ module SystemCheck if Rails.env.production? checks << SystemCheck::IncomingEmail::InitdConfiguredCheck checks << SystemCheck::IncomingEmail::MailRoomRunningCheck - else - checks << SystemCheck::IncomingEmail::ForemanConfiguredCheck end SystemCheck.run('Reply by email', checks) |