From d03e022b8816fd4193ff7a0a34e35573e8114e7f Mon Sep 17 00:00:00 2001 From: Jacob Vosmaer Date: Mon, 2 Jan 2017 18:59:07 +0100 Subject: WIP Use excon for HTTP requests --- bin/check | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin/check') diff --git a/bin/check b/bin/check index 9585416..0803289 100755 --- a/bin/check +++ b/bin/check @@ -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" -- cgit v1.2.1