a99bf447a2
Cleanup code, and refactor tests that still use Rugged. After this, there should be no Rugged code that access the instance's repositories on non-test environments. There is still some rugged code for other tasks like the repository import task, but since it doesn't access any repository storage path it can stay.
15 lines
369 B
Ruby
15 lines
369 B
Ruby
module Gitlab
|
|
module Git
|
|
class WikiFile
|
|
attr_reader :mime_type, :raw_data, :name, :path
|
|
|
|
# This class wraps Gitlab::GitalyClient::WikiFile
|
|
def initialize(gitaly_file)
|
|
@mime_type = gitaly_file.mime_type
|
|
@raw_data = gitaly_file.raw_data
|
|
@name = gitaly_file.name
|
|
@path = gitaly_file.path
|
|
end
|
|
end
|
|
end
|
|
end
|