From 18b4d39ac7172cb02cec63e7bf1cc21807a9b3f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20Rodr=C3=ADguez?= Date: Wed, 29 Jun 2016 13:58:20 -0400 Subject: Refactor repository paths handling to allow multiple git mount points --- bin/check | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) (limited to 'bin/check') diff --git a/bin/check b/bin/check index 7aa1fe4..363cb6a 100755 --- a/bin/check +++ b/bin/check @@ -23,18 +23,15 @@ end puts "\nCheck directories and files: " config = GitlabConfig.new -dirs = [config.repos_path, config.auth_file] -dirs.each do |dir| - abort("ERROR: missing option in config.yml") unless dir - print "\t#{dir}: " - if File.exists?(dir) - print 'OK' - else - abort "FAILED" - end - puts "\n" +abort("ERROR: missing option in config.yml") unless config.auth_file +print "\t#{config.auth_file}: " +if File.exists?(config.auth_file) + print 'OK' +else + abort "FAILED" end +puts "\n" print "Send ping to redis server: " abort unless GitlabNet.new.redis_client.ping -- cgit v1.2.1