debian-mirror-gitlab/lib/gitlab/import_sources.rb

29 lines
599 B
Ruby
Raw Normal View History

2015-09-25 12:07:36 +05:30
# 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
{
2016-09-29 09:46:39 +05:30
'GitHub' => 'github',
'Bitbucket' => 'bitbucket',
'GitLab.com' => 'gitlab',
'Google Code' => 'google_code',
'FogBugz' => 'fogbugz',
'Repo by URL' => 'git',
2016-06-22 15:30:34 +05:30
'GitLab export' => 'gitlab_project'
2015-09-25 12:07:36 +05:30
}
end
end
end
end