wiki_formatter.rb 523 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
module Gitlab
  module GithubImport
    class WikiFormatter
      attr_reader :project

      def initialize(project)
        @project = project
      end

      def path_with_namespace
        "#{project.path_with_namespace}.wiki"
      end

      def import_url
15
16
17
        import_url = Gitlab::ImportUrlExposer.expose(import_url: project.import_url,
                                                     credentials: project.import_data.credentials)
        import_url.sub(/\.git\z/, ".wiki.git")
18
19
20
21
      end
    end
  end
end