gitlab-org--gitlab-foss/lib/gitlab/github_import/wiki_formatter.rb

20 lines
347 B
Ruby
Raw Normal View History

2016-01-06 18:15:37 -05:00
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")
2016-01-06 18:15:37 -05:00
end
end
end
end