@hashgraph/solo
Version:
An opinionated CLI tool to deploy and manage private Hedera Networks.
18 lines • 572 B
JavaScript
// SPDX-License-Identifier: Apache-2.0
import { SoloError } from '../../../core/errors/solo-error.js';
export class DefaultCacheImageTemplateResolver {
templateValues;
constructor(templateValues) {
this.templateValues = templateValues;
}
has(key) {
return key in this.templateValues;
}
resolve(key) {
if (!this.has(key)) {
throw new SoloError(`Unknown cache image template key: ${key}`);
}
return this.templateValues[key];
}
}
//# sourceMappingURL=default-cache-image-template-resolver.js.map