summaryrefslogtreecommitdiff
path: root/lib/gitlab/import_sources.rb
blob: 59a05411fe9dc36395087ced47fb0ecc3e9bfd59 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# 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',
          'FogBugz'         => 'fogbugz',
          'Repo by URL'     => 'git',
          'GitLab export' => 'gitlab_project'
        }
      end
    end
  end
end