UNPKG

@hashgraph/solo

Version:

An opinionated CLI tool to deploy and manage private Hedera Networks.

23 lines 765 B
// SPDX-License-Identifier: Apache-2.0 import { LayeredModelConfigSource } from './layered-model-config-source.js'; import { YamlFileStorageBackend } from '../../backend/impl/yaml-file-storage-backend.js'; /** * A {@link ConfigSource} that reads default configuration data from its YAML file backend. */ export class DefaultConfigSource extends LayeredModelConfigSource { data; constructor(fileName, basePath, schema, mapper) { super(fileName, schema, new YamlFileStorageBackend(basePath), mapper); this.data = new Map(); } get name() { return this.constructor.name; } get ordinal() { return 0; } async refresh() { await this.load(); } } //# sourceMappingURL=default-config-source.js.map