28 lines
599 B
Ruby
28 lines
599 B
Ruby
# 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',
|
|
'Google Code' => 'google_code',
|
|
'FogBugz' => 'fogbugz',
|
|
'Repo by URL' => 'git',
|
|
'GitLab export' => 'gitlab_project'
|
|
}
|
|
end
|
|
end
|
|
end
|
|
end
|