diff options
Diffstat (limited to 'lib/gitlab_net.rb')
-rw-r--r-- | lib/gitlab_net.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/gitlab_net.rb b/lib/gitlab_net.rb index d92d3ab..745394a 100644 --- a/lib/gitlab_net.rb +++ b/lib/gitlab_net.rb @@ -1,6 +1,8 @@ require 'net/http' require 'json' +require_relative 'gitlab_config' + class GitlabNet def allowed?(cmd, repo, key, ref) project_name = repo.gsub("'", "") @@ -23,7 +25,7 @@ class GitlabNet protected def host - "http://127.0.0.1:3000/api/v3/internal" + "#{GitlabConfig.new.gitlab_url}api/v3/internal" end def get(url) |