Class: SystemCheck::IncomingEmail::MailRoomRunningCheck
- Includes:
- SystemCheck::InitHelpers
- Defined in:
- lib/system_check/incoming_email/mail_room_running_check.rb
Instance Attribute Summary
Attributes inherited from BaseCheck
Instance Method Summary collapse
Methods included from SystemCheck::InitHelpers
Methods inherited from BaseCheck
#can_repair?, #can_skip?, check_fail, check_pass, display_name, #multi_check, #multi_check?, #repair!, set_check_fail, set_check_pass, set_name, set_skip_reason, skip_reason
Methods included from Helpers
#construct_help_page_url, #finished_checking, #fix_and_rerun, #for_more_information, #omnibus_gitlab?, #sanitized_message, #see_installation_guide_section, #should_sanitize?, #start_checking, #sudo_gitlab, #try_fixing_it
Methods included from Gitlab::TaskHelpers
#ask_to_continue, #checkout_or_clone_version, #checkout_version, #clone_repo, #download_package_file_version, #get_version, #gid_for, #gitlab_user, #gitlab_user?, #invoke_and_time_task, #os_name, #prompt, #prompt_for_password, #run_and_match, #run_command, #run_command!, #uid_for, #user_home, #warn_user_is_not_gitlab
Instance Method Details
#check? ⇒ Boolean
19 20 21 |
# File 'lib/system_check/incoming_email/mail_room_running_check.rb', line 19 def check? mail_room_running? end |
#show_error ⇒ Object
23 24 25 26 27 28 29 30 31 32 |
# File 'lib/system_check/incoming_email/mail_room_running_check.rb', line 23 def show_error try_fixing_it( 'Start mail_room' ) for_more_information( 'doc/administration/incoming_email.md', 'see log/mail_room.log for possible errors' ) fix_and_rerun end |
#skip? ⇒ Boolean
10 11 12 13 14 15 16 17 |
# File 'lib/system_check/incoming_email/mail_room_running_check.rb', line 10 def skip? return true if omnibus_gitlab? unless mail_room_enabled? || mail_room_configured? self.skip_reason = "can't check because of previous errors" true end end |