Class: Gitlab::ImportExport::Json::LegacyReader::File
- Inherits:
-
Gitlab::ImportExport::Json::LegacyReader
- Object
- Gitlab::ImportExport::Json::LegacyReader
- Gitlab::ImportExport::Json::LegacyReader::File
- Includes:
- Utils::StrongMemoize
- Defined in:
- lib/gitlab/import_export/json/legacy_reader.rb
Instance Method Summary collapse
- #exist? ⇒ Boolean
-
#initialize(path, relation_names:, allowed_path: nil) ⇒ File
constructor
A new instance of File.
Methods included from Utils::StrongMemoize
#clear_memoization, #strong_memoize, #strong_memoized?
Methods inherited from Gitlab::ImportExport::Json::LegacyReader
#consume_attributes, #consume_relation, #legacy?, #sort_ci_pipelines_by_id
Constructor Details
#initialize(path, relation_names:, allowed_path: nil) ⇒ File
Returns a new instance of File.
10 11 12 13 14 15 |
# File 'lib/gitlab/import_export/json/legacy_reader.rb', line 10 def initialize(path, relation_names:, allowed_path: nil) @path = path super( relation_names: relation_names, allowed_path: allowed_path) end |
Instance Method Details
#exist? ⇒ Boolean
17 18 19 |
# File 'lib/gitlab/import_export/json/legacy_reader.rb', line 17 def exist? ::File.exist?(@path) end |