@controlplane/cli
Version:
Control Plane Corporation CLI
27 lines • 767 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
const resolver_1 = require("../../commands/resolver");
class ComposeResource {
constructor(name, kind, body, context, composePath) {
this.name = name;
this.kind = kind;
this.body = body;
this.context = context;
this.composePath = composePath;
this.issues = [];
}
getName() {
return this.name.replace(/_/g, '-');
}
async build() { }
async init() { }
toResource() {
return {};
}
toSelfLink() {
return (0, resolver_1.resolveToLink)(this.kind, this.getName(), this.context);
}
resourceIssues() { }
}
exports.default = ComposeResource;
//# sourceMappingURL=composeResource.js.map
;