2015-08-12 02:13:20 -04:00
|
|
|
# Gitlab::ImportSources module
|
|
|
|
#
|
|
|
|
# Define import sources that can be used
|
|
|
|
# during the creation of new project
|
|
|
|
#
|
|
|
|
module Gitlab
|
|
|
|
module ImportSources
|
|
|
|
extend CurrentSettings
|
|
|
|
|
|
|
|
class << self
|
|
|
|
def values
|
|
|
|
options.values
|
|
|
|
end
|
|
|
|
|
|
|
|
def options
|
|
|
|
{
|
|
|
|
'GitHub' => 'github',
|
|
|
|
'Bitbucket' => 'bitbucket',
|
|
|
|
'GitLab.com' => 'gitlab',
|
|
|
|
'Gitorious.org' => 'gitorious',
|
|
|
|
'Google Code' => 'google_code',
|
2015-08-04 18:21:12 -04:00
|
|
|
'FogBugz' => 'fogbugz',
|
2015-08-12 02:13:20 -04:00
|
|
|
'Any repo by URL' => 'git',
|
2016-04-22 11:44:59 -04:00
|
|
|
'GitLab project' => 'gitlab_project'
|
2015-08-12 02:13:20 -04:00
|
|
|
}
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|