2018-08-03 13:22:24 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-05-02 18:45:50 -04:00
|
|
|
module BlobLike
|
|
|
|
extend ActiveSupport::Concern
|
2018-08-03 09:24:26 -04:00
|
|
|
include Gitlab::BlobHelper
|
2017-05-02 18:45:50 -04:00
|
|
|
|
|
|
|
def id
|
|
|
|
raise NotImplementedError
|
|
|
|
end
|
|
|
|
|
|
|
|
def name
|
|
|
|
raise NotImplementedError
|
|
|
|
end
|
|
|
|
|
|
|
|
def path
|
|
|
|
raise NotImplementedError
|
|
|
|
end
|
|
|
|
|
|
|
|
def size
|
|
|
|
0
|
|
|
|
end
|
|
|
|
|
|
|
|
def data
|
|
|
|
nil
|
|
|
|
end
|
|
|
|
|
|
|
|
def mode
|
|
|
|
nil
|
|
|
|
end
|
|
|
|
|
|
|
|
def binary?
|
|
|
|
false
|
|
|
|
end
|
|
|
|
|
|
|
|
def load_all_data!(repository)
|
|
|
|
# No-op
|
|
|
|
end
|
|
|
|
|
|
|
|
def truncated?
|
|
|
|
false
|
|
|
|
end
|
|
|
|
|
|
|
|
def external_storage
|
|
|
|
nil
|
|
|
|
end
|
|
|
|
|
|
|
|
def external_size
|
|
|
|
nil
|
|
|
|
end
|
|
|
|
end
|