Module: SystemCheck::RakeTask::RakeTaskHelpers
Overview
Provides the run! method intended to be called from system check rake tasks
Instance Method Summary
collapse
Methods included from Helpers
#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
#ask_to_continue, #checkout_or_clone_version, #checkout_version, #clone_repo, #get_version, #gid_for, #gitlab_user, #gitlab_user?, #invoke_and_time_task, #os_name, #prompt, #prompt_for_password, #repository_storage_paths_args, #run_and_match, #run_command, #run_command!, #uid_for, #user_home, #warn_user_is_not_gitlab
Instance Method Details
#checks ⇒ Object
27
28
29
|
# File 'lib/system_check/rake_task/rake_task_helpers.rb', line 27
def checks
raise NotImplementedError
end
|
#name ⇒ Object
23
24
25
|
# File 'lib/system_check/rake_task/rake_task_helpers.rb', line 23
def name
raise NotImplementedError
end
|
#run! ⇒ Object
9
10
11
12
13
14
15
16
17
|
# File 'lib/system_check/rake_task/rake_task_helpers.rb', line 9
def run!
warn_user_is_not_gitlab
if self.respond_to?(:manual_run_checks!)
manual_run_checks!
else
run_checks!
end
end
|
#run_checks! ⇒ Object
19
20
21
|
# File 'lib/system_check/rake_task/rake_task_helpers.rb', line 19
def run_checks!
SystemCheck.run(name, checks)
end
|