diff options
Diffstat (limited to 'bin/check')
-rwxr-xr-x | bin/check | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -10,10 +10,10 @@ require_relative '../lib/gitlab_net' print "Check GitLab API access: " begin resp = GitlabNet.new.check - if resp.code == "200" + if resp.status == 200 print 'OK' else - abort "FAILED. code: #{resp.code}" + abort "FAILED. code: #{resp.status}" end rescue GitlabNet::ApiUnreachableError abort "FAILED: Failed to connect to internal API" |