summaryrefslogtreecommitdiff
path: root/lib/system_check
diff options
context:
space:
mode:
authorGabriel Mazetto <brodock@gmail.com>2017-05-31 11:32:11 +0200
committerGabriel Mazetto <brodock@gmail.com>2017-05-31 14:33:03 +0200
commitd219f9a691973708f70d9517765a2ec926d6d903 (patch)
tree9c60270e7bdd60cf40c21260d94f11a8bc1ae506 /lib/system_check
parent23f9e95e8a7dfa3371f0c60a90a4cffc300c0f72 (diff)
downloadgitlab-ce-d219f9a691973708f70d9517765a2ec926d6d903.tar.gz
Fix BasicExecutor specs
Diffstat (limited to 'lib/system_check')
-rw-r--r--lib/system_check/helpers.rb11
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