Define GITORIOUS_HOST only once

This commit is contained in:
Robert Speicher 2015-05-21 17:34:12 -04:00
parent 1c4604bff6
commit 2f3ab0ab85
3 changed files with 5 additions and 4 deletions

View file

@ -0,0 +1,5 @@
module Gitlab
module GitoriousImport
GITORIOUS_HOST = "https://gitorious.org"
end
end

View file

@ -1,7 +1,5 @@
module Gitlab
module GitoriousImport
GITORIOUS_HOST = "https://gitorious.org"
class Client
attr_reader :repo_list

View file

@ -1,7 +1,5 @@
module Gitlab
module GitoriousImport
GITORIOUS_HOST = "https://gitorious.org"
Repository = Struct.new(:full_name) do
def id
Digest::SHA1.hexdigest(full_name)