diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-02-05 13:24:41 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-02-05 13:24:41 +0200 |
commit | e7a4d233c47743acfc788767c93fd7153269be31 (patch) | |
tree | fc5196d4b8efd0fb464f24d99f996ef9fd3d155e /lib/gitlab_net.rb | |
parent | 02f4cb520458ad336e67c259810359ebcdaedb59 (diff) | |
download | gitlab-shell-e7a4d233c47743acfc788767c93fd7153269be31.tar.gz |
gitlab-url config
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) |