summaryrefslogtreecommitdiff
path: root/lib/tasks
diff options
context:
space:
mode:
authorMaxim Rydkin <maks.rydkin@gmail.com>2017-08-24 19:58:09 +0300
committerMaxim Rydkin <maks.rydkin@gmail.com>2017-08-29 11:14:41 +0300
commit6a56bec735c7434c85e3b8776b8413d3bdcb93ec (patch)
tree8a8152101a267bc500cec84c6343546fe7143ab5 /lib/tasks
parent48389b4e5ec251441d1b1e135fdb28fe742289d8 (diff)
downloadgitlab-ce-6a56bec735c7434c85e3b8776b8413d3bdcb93ec.tar.gz
replace `is_gitlab_user?` with `gitlab_user?`
Diffstat (limited to 'lib/tasks')
-rw-r--r--lib/tasks/gitlab/task_helpers.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/tasks/gitlab/task_helpers.rb b/lib/tasks/gitlab/task_helpers.rb
index d85b810ac66..8a63f486fa3 100644
--- a/lib/tasks/gitlab/task_helpers.rb
+++ b/lib/tasks/gitlab/task_helpers.rb
@@ -104,7 +104,7 @@ module Gitlab
Gitlab.config.gitlab.user
end
- def is_gitlab_user?
+ def gitlab_user?
return @is_gitlab_user unless @is_gitlab_user.nil?
current_user = run_command(%w(whoami)).chomp
@@ -114,7 +114,7 @@ module Gitlab
def warn_user_is_not_gitlab
return if @warned_user_not_gitlab
- unless is_gitlab_user?
+ unless gitlab_user?
current_user = run_command(%w(whoami)).chomp
puts " Warning ".color(:black).background(:yellow)