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
|
|
|
|
|
2018-12-13 12:49:05 -05:00
|
|
|
def binary_in_repo?
|
2017-05-02 18:45:50 -04:00
|
|
|
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
|