Add active users to gitlab:check

This commit is contained in:
Dmitriy Zaporozhets 2015-03-10 12:03:04 -07:00
parent 82bb3ec33d
commit ae7e380632

View file

@ -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