diff options
Diffstat (limited to 'lib/tasks/gitlab/status.rake')
-rw-r--r-- | lib/tasks/gitlab/status.rake | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/tasks/gitlab/status.rake b/lib/tasks/gitlab/status.rake index a16b1512dde..02d27d4bbcc 100644 --- a/lib/tasks/gitlab/status.rake +++ b/lib/tasks/gitlab/status.rake @@ -56,6 +56,20 @@ namespace :gitlab do return end + gitolite_hooks_path = File.join("/home", Gitlab.config.ssh_user, "share", "gitolite", "hooks", "common") + gitlab_hook_files = ['post-receive'] + gitlab_hook_files.each do |file_name| + dest = File.join(gitolite_hooks_path, file_name) + print "#{dest} exists? ............" + if File.exists?(dest) + puts "YES".green + else + puts "NO".red + return + end + end + + if Project.count > 0 puts "Validating projects repositories:".yellow Project.find_each(:batch_size => 100) do |project| |