summaryrefslogtreecommitdiff
path: root/lib/gitlab/github_import/wiki_formatter.rb
blob: 6c592ff469c8d1f60a4b0b1f1d4a626354d86486 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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
        project.import_url.sub(/\.git\z/, ".wiki.git")
      end
    end
  end
end