Add active users to gitlab:check
This commit is contained in:
parent
82bb3ec33d
commit
ae7e380632
1 changed files with 5 additions and 0 deletions
|
@ -29,6 +29,7 @@ namespace :gitlab do
|
||||||
check_redis_version
|
check_redis_version
|
||||||
check_ruby_version
|
check_ruby_version
|
||||||
check_git_version
|
check_git_version
|
||||||
|
check_active_users
|
||||||
|
|
||||||
finished_checking "GitLab"
|
finished_checking "GitLab"
|
||||||
end
|
end
|
||||||
|
@ -781,6 +782,10 @@ namespace :gitlab do
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def check_active_users
|
||||||
|
puts "Active users: #{User.active.count}"
|
||||||
|
end
|
||||||
|
|
||||||
def omnibus_gitlab?
|
def omnibus_gitlab?
|
||||||
Dir.pwd == '/opt/gitlab/embedded/service/gitlab-rails'
|
Dir.pwd == '/opt/gitlab/embedded/service/gitlab-rails'
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue