diff options
author | Gabriel Mazetto <brodock@gmail.com> | 2017-05-31 12:32:11 +0300 |
---|---|---|
committer | Gabriel Mazetto <brodock@gmail.com> | 2017-05-31 15:33:03 +0300 |
commit | d219f9a691973708f70d9517765a2ec926d6d903 (patch) | |
tree | 9c60270e7bdd60cf40c21260d94f11a8bc1ae506 /lib/system_check | |
parent | 23f9e95e8a7dfa3371f0c60a90a4cffc300c0f72 (diff) |
Fix BasicExecutor specs
Diffstat (limited to 'lib/system_check')
-rw-r--r-- | lib/system_check/helpers.rb | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/lib/system_check/helpers.rb b/lib/system_check/helpers.rb index cd54baa494f..c42ae4fe4c4 100644 --- a/lib/system_check/helpers.rb +++ b/lib/system_check/helpers.rb @@ -68,19 +68,8 @@ module SystemCheck Dir.pwd == '/opt/gitlab/embedded/service/gitlab-rails' end - def gitlab_user - Gitlab.config.gitlab.user - end - def sudo_gitlab(command) "sudo -u #{gitlab_user} -H #{command}" end - - def is_gitlab_user? - return @is_gitlab_user unless @is_gitlab_user.nil? - - current_user = run_command(%w(whoami)).chomp - @is_gitlab_user = current_user == gitlab_user - end end end |