diff options
author | Robert Speicher <rspeicher@gmail.com> | 2015-05-22 00:34:12 +0300 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2015-06-10 08:31:27 +0300 |
commit | 2f3ab0ab858f3343807716d5ef033f7a90112d51 (patch) | |
tree | 0d6a41b6cc93c2453ad7664a5c449417f944cb55 /lib | |
parent | 1c4604bff67f612d8c74be499891b04f51a7821a (diff) |
Define GITORIOUS_HOST only once
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/gitorious_import.rb | 5 | ||||
-rw-r--r-- | lib/gitlab/gitorious_import/client.rb | 2 | ||||
-rw-r--r-- | lib/gitlab/gitorious_import/repository.rb | 2 |
3 files changed, 5 insertions, 4 deletions
diff --git a/lib/gitlab/gitorious_import.rb b/lib/gitlab/gitorious_import.rb new file mode 100644 index 00000000000..8d0132a744c --- /dev/null +++ b/lib/gitlab/gitorious_import.rb @@ -0,0 +1,5 @@ +module Gitlab + module GitoriousImport + GITORIOUS_HOST = "https://gitorious.org" + end +end diff --git a/lib/gitlab/gitorious_import/client.rb b/lib/gitlab/gitorious_import/client.rb index 1fa89dba448..99fe5bdebfc 100644 --- a/lib/gitlab/gitorious_import/client.rb +++ b/lib/gitlab/gitorious_import/client.rb @@ -1,7 +1,5 @@ module Gitlab module GitoriousImport - GITORIOUS_HOST = "https://gitorious.org" - class Client attr_reader :repo_list diff --git a/lib/gitlab/gitorious_import/repository.rb b/lib/gitlab/gitorious_import/repository.rb index f702797dc6e..c88f1ae358d 100644 --- a/lib/gitlab/gitorious_import/repository.rb +++ b/lib/gitlab/gitorious_import/repository.rb @@ -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) |